/* maolah 大寶設計顧問 — 官網樣式 */
:root {
  --accent: #F2C744;
  --ink: #222222;
  --ink-2: #444444;
  --text-2: #555555;
  --muted: #6F6F6F;
  --line: #E4E4E0;
  --line-2: #BBBBB6;
  --soft: #F7F7F5;
  --soft-2: #F0F0EC;
  --paper: #FFFFFF;
  --font-zh: 'Noto Sans TC', sans-serif;
  --font-en: 'Bricolage Grotesque', 'Noto Sans TC', sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: #666666; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; }
input:focus, select:focus, textarea:focus,
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.en { font-family: var(--font-en); }
.dot { display: inline-block; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 按鈕 ---------- */
.btn {
  text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
  border-radius: 2px; letter-spacing: 0.12em; min-height: 44px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--ink); border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); padding: 14px 28px; font-weight: 500; font-size: 15px; min-height: 52px;
}
.btn-primary:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); padding: 8px 20px; font-size: 14px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-text {
  color: var(--ink); padding: 14px 8px; font-size: 15px; min-height: 52px;
  border-bottom: 1px solid var(--ink); border-radius: 0;
}
.btn-dark {
  background: var(--ink); color: #fff; border: 0; padding: 14px 40px; font-size: 15px;
  letter-spacing: 0.15em; min-height: 48px;
}
.btn-dark:hover { background: #000; }
.btn-dark[disabled] { opacity: .6; cursor: wait; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-en); font-weight: 700; font-size: 24px; line-height: 1; letter-spacing: -0.5px; color: var(--ink); }
.brand-sub { font-size: 12px; color: var(--muted); letter-spacing: 0.2em; padding-left: 12px; border-left: 1px solid #D9D9D6; line-height: 1.4; }
.nav-links { display: flex; gap: 36px; font-size: 14px; letter-spacing: 0.12em; }
.nav-links a { text-decoration: none; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 6px;
  background: var(--accent); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--ink); background: #fff;
  border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; padding: 0; color: var(--ink);
}
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 32px 24px; }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line); letter-spacing: 0.12em; min-height: 44px;
}
.mobile-nav.is-open { display: block; }

/* ---------- Hero ---------- */
.hero { padding-top: 136px; padding-bottom: 128px; display: flex; gap: 48px; align-items: stretch; }
.hero-main { flex: 1 1 auto; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; color: var(--muted); margin-bottom: 48px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.45; letter-spacing: 0.06em; max-width: 1000px; }
.mark { position: relative; display: inline-block; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 10%; height: 26%; background: var(--accent); z-index: -1; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 72px; }
.hero-foot p { margin: 0; max-width: 520px; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.v-label { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 20px; padding-top: 8px; }
.v-label span:first-child { writing-mode: vertical-rl; font-size: 13px; letter-spacing: 0.6em; color: var(--muted); }
.v-label span:last-child { width: 1px; flex: 1 1 auto; min-height: 120px; background: #D9D9D6; }

/* ---------- 關鍵字跑馬燈 ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track {
  display: flex; gap: 64px; width: max-content; padding: 22px 0;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; color: var(--muted);
  animation: ticker 40s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 64px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- 區塊通用 ---------- */
.section { padding-top: 136px; padding-bottom: 136px; }
.bg-soft { background: var(--soft); }
.bg-dark { background: var(--ink); color: #fff; }
.kicker { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.3em; color: var(--muted); }
.kicker i { width: 32px; height: 1px; background: var(--line-2); }
.bg-dark .kicker { color: #AAAAAA; }
.bg-dark .kicker i { background: #666666; }
h2 { margin: 0; font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.6; letter-spacing: 0.08em; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 72px; }
.section-head p { margin: 0; max-width: 360px; color: var(--text-2); font-size: 15px; }
.bg-dark .section-head p { color: #BBBBBB; }
.muted { color: var(--muted); }

/* ---------- 痛點 ---------- */
.issues { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--ink); }
.issue { padding: 40px 32px 8px 0; }
.issue-no { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em; color: var(--muted); }
.issue h3 { margin: 20px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; }
.issue p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- 服務 ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service {
  border: 1px solid var(--ink); border-radius: 2px; padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.service.is-accent { background: var(--accent); }
.service-top { display: flex; justify-content: space-between; align-items: baseline; }
.service-no { font-family: var(--font-en); font-size: 40px; line-height: 1; letter-spacing: -0.5px; }
.service-tag { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.service.is-accent .service-tag { color: var(--ink); }
.service h3 { margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.service p { margin: 0; color: var(--text-2); font-size: 15px; }
.service.is-accent p { color: var(--ink); }
.service ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.service li { border-top: 1px solid var(--line); padding: 12px 0; }
.service li:last-child { border-bottom: 1px solid var(--line); }
.service.is-accent li { border-color: rgba(34,34,34,0.3); }

/* ---------- 流程 ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid #555555; }
.steps li { padding: 32px 24px 0 0; }
.step-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: #AAAAAA; }
.steps h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; }
.steps p { margin: 0; color: #BBBBBB; font-size: 14px; }

/* ---------- 實績 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 88px; }
.stat { padding: 36px 24px 36px 0; }
.stat-num { font-family: var(--font-en); font-size: 48px; line-height: 1; }
.stat-num small { font-size: 20px; margin-left: 4px; }
.stat-label { margin-top: 12px; color: var(--muted); font-size: 13px; letter-spacing: 0.15em; }
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 32px; }
.work { display: flex; flex-direction: column; gap: 14px; }
.work-media {
  aspect-ratio: 4 / 3; background: var(--soft-2); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; overflow: hidden;
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover .work-media img { transform: scale(1.03); }
.work-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.15em; margin-top: 8px; }
.tag-demo { background: var(--accent); color: var(--ink); padding: 1px 8px; margin-left: 8px; }
.work h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.work p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- 關於 ---------- */
.about { display: flex; flex-wrap: wrap; gap: 80px; align-items: center; }
.about-photo {
  flex: 1 1 320px; max-width: 420px; aspect-ratio: 4 / 5; background: #E9E9E4;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .dot { position: absolute; right: -14px; bottom: -14px; width: 56px; height: 56px; }
.about-body { flex: 999 1 460px; min-width: 0; }
.about-body h2 { margin-bottom: 32px; }
.about-body p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.about-body p:last-of-type { margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line-2); padding: 2px 14px; font-size: 13px; letter-spacing: 0.1em; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq-wrap h2 { margin-bottom: 56px; }
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; padding: 26px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; text-align: left; cursor: pointer; color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; min-height: 44px; line-height: 1.7;
}
.faq-q > span:first-child { display: flex; gap: 20px; }
.faq-q .en { color: var(--muted); }
.faq-sign {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease;
}
.faq-sign svg { transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .faq-sign { background: var(--accent); }
.faq-q[aria-expanded="true"] .faq-sign svg { transform: rotate(45deg); }
.faq-a { margin: 0; padding: 0 60px 28px 40px; color: var(--text-2); font-size: 15px; }
.faq-a[hidden] { display: none; }

/* ---------- 聯絡 ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 80px; }
.contact-info { flex: 1 1 340px; min-width: 0; }
.contact-info h2 { margin-bottom: 28px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.5; }
.contact-info > p { margin: 0 0 48px; max-width: 400px; color: var(--text-2); font-size: 15px; }
.line-box { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.qr {
  width: 128px; height: 128px; background: #fff; border: 1px solid #D9D9D6; display: flex; align-items: center; justify-content: center;
  font-size: 12px; text-align: center; color: var(--muted); line-height: 1.5;
}
.qr img { width: 100%; height: 100%; object-fit: contain; }
.line-actions { display: flex; flex-direction: column; gap: 14px; }
.line-actions .btn-primary { padding: 12px 24px; min-height: 48px; }
.line-id { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.contact-form-box { flex: 999 1 520px; min-width: 0; background: #fff; border: 1px solid var(--ink); border-radius: 2px; padding: 48px 40px; }
.contact-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; letter-spacing: 0.12em; color: var(--text-2); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; min-height: 44px;
  color: var(--ink); font-size: 16px; border-radius: 0; letter-spacing: 0.04em;
}
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 24px; }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: #B3261E; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.form-foot small { font-size: 12px; color: var(--muted); }
.form-error { grid-column: 1 / -1; margin: 0; color: #B3261E; font-size: 14px; }
.form-done { min-height: 420px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.form-done[hidden], .contact-form[hidden] { display: none; }
.form-done h3 { margin: 12px 0 0; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.form-done p { margin: 0; color: var(--text-2); font-size: 15px; }
.form-done button { align-self: flex-start; margin-top: 16px; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 2px; cursor: pointer; min-height: 44px; color: var(--ink); letter-spacing: 0.12em; }
.hp { position: absolute; left: -9999px; }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 13px; color: var(--muted); letter-spacing: 0.08em; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 浮動 LINE 按鈕（手機） ---------- */
.float-line {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: none;
  padding: 12px 20px; min-height: 48px;
}

/* ---------- RWD ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 820px) {
  .v-label { display: none; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .hero { padding-top: 72px; padding-bottom: 80px; }
  .eyebrow { margin-bottom: 32px; }
  .hero-foot { margin-top: 48px; }
  .section-head { margin-bottom: 48px; }
  .stats { margin-bottom: 56px; }
  .about, .contact-grid { gap: 48px; }
  .contact-form-box { padding: 32px 20px; }
  .faq-a { padding: 0 8px 24px 40px; }
  .mobile-nav ul { padding-left: 20px; padding-right: 20px; }
  .float-line { display: inline-flex; }
}
@media (max-width: 520px) {
  .brand-sub { display: none; }
  .header-actions .btn-outline { display: none; }
  .stat-num { font-size: 40px; }
}
