/* bhb.hk 首頁（方向 C：品牌色海報）—— 主色 #2A9D80、白、墨三色，平面、無陰影。
   2026-10-18：老闆說首屏字原本太大，標題縮到最大 96px，其他大標題跟著等比縮小。 */

:root {
  --brand: #2A9D80;
  --deep: #197E66;
  --tint: #F1F8F5;
  --ink: #0D1210;
  --muted: #5F6A66;
  --line: #DCE3E0;
  --pad: clamp(20px, 4.5vw, 64px);
  --header: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.6 "Inter Tight", "PingFang TC", "PingFang SC", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.keep-case { text-transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.bhb-load { transition: opacity .4s ease; }
.bhb-load.is-done { opacity: 0; }

.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 54px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 16px/1 "Inter Tight", system-ui, sans-serif; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:focus-visible, .pill:focus-visible, .entry:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--deep); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }

/* ── Header (frosted glass) ──────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px; height: var(--header); padding: 0 var(--pad);
  color: #fff; background: rgba(42, 157, 128, .55);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .35s, color .35s, border-color .35s;
}
.site-header.is-light { color: var(--ink); background: rgba(255, 255, 255, .72); border-bottom-color: var(--line); backdrop-filter: blur(18px) saturate(1.7); -webkit-backdrop-filter: blur(18px) saturate(1.7); }
.brand { position: relative; flex: none; width: 104px; aspect-ratio: 2648 / 816; }
.brand img { position: absolute; inset: 0; width: 100%; transition: opacity .35s; }
.brand-green { opacity: 0; }
.is-light .brand-white { opacity: 0; }
.is-light .brand-green { opacity: 1; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.site-nav > a:not(.pill) { opacity: .82; transition: opacity .2s; }
.site-nav > a:not(.pill):hover { opacity: 1; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; opacity: .82; cursor: pointer; }
.lang-switch:hover, .lang-switch:focus-within { opacity: 1; }
.lang-switch select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: 600 15px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer; }
.lang-switch select option { color: var(--ink); }
.lang-switch select:focus { outline: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; background: #fff; color: var(--deep); transition: background-color .35s, color .35s; }
.is-light .pill { background: var(--ink); color: #fff; }
.menu-toggle { display: none; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; background: var(--brand); color: #fff; min-height: min(820px, 92svh); display: flex; }
.hero-mark { position: absolute; right: -8vw; top: 54%; width: min(60vw, 780px); transform: translateY(-50%) rotate(-12deg); opacity: .2; pointer-events: none; }
.hero-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header) + 72px) var(--pad) 56px; }
.hero-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-logo { flex: none; width: clamp(240px, 30vw, 440px); height: auto; margin-bottom: .4em; }
.hero .eyebrow { opacity: .88; }
.eyebrow-sep { margin: 0 .5em; }
/* 中文名只在中文版有字（其他語言 i18n 給空字串），沒有字時連破折號一起藏起來 */
.eyebrow:has([data-i18n="hero.altname"]:empty) .eyebrow-sep { display: none; }
.hero h1 { margin-top: 22px; color: rgba(255, 255, 255, .82); font-weight: 800; font-size: clamp(44px, 6.2vw, 96px); line-height: .95; letter-spacing: -0.045em; }
.hero h1 .line { display: block; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 44px; padding-top: 24px; border-top: 1.5px solid rgba(255, 255, 255, .5); }
.hero-foot p { max-width: 32em; font-size: 18px; line-height: 1.5; opacity: .94; }

/* ── What we do (numbered list) ──────────────────────── */
.list { padding: 104px var(--pad) 112px; }
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 24px; border-bottom: 3px solid var(--ink); }
.list-head h2 { font-size: clamp(32px, 3.8vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.entry { display: grid; grid-template-columns: 120px 1fr 1.4fr 52px; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1.5px solid var(--ink); transition: background-color .25s, padding .25s var(--ease); }
.entry:hover { background: var(--tint); padding-left: 16px; padding-right: 16px; }
.entry .n { font-size: clamp(40px, 4vw, 60px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--brand); }
.entry h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.entry p { color: var(--muted); }
.entry .arr { justify-self: end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 19px; transition: background-color .25s, transform .25s var(--ease); }
.entry:hover .arr { background: var(--brand); transform: rotate(45deg); }

/* ── Company ─────────────────────────────────────────── */
.company { padding: 0 var(--pad) 120px; }
.company .statement { margin-top: 18px; max-width: 22em; font-size: clamp(28px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.company .statement em { font-style: normal; color: var(--brand); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 3px solid var(--ink); }
.pillar { padding: 28px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.pillar strong { display: block; margin: 18px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.pillar p { color: var(--muted); font-size: 16px; }

/* ── Contact band ────────────────────────────────────── */
.band { position: relative; overflow: clip; background: var(--brand); color: #fff; padding: 112px var(--pad); }
.band-mark { position: absolute; right: -6vw; top: 50%; width: min(52vw, 640px); transform: translateY(-50%) rotate(-12deg); opacity: .18; pointer-events: none; }
.band-inner { position: relative; }
.band .eyebrow { opacity: .88; }
.band h2 { margin-top: 18px; font-size: clamp(44px, 5.6vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.band-intro { margin-top: 22px; max-width: 32em; font-size: 18px; opacity: .92; }
.band-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px var(--pad) 32px; }
.footer-top-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-logo { width: 120px; }
.footer-top { color: #fff; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 36px 0; }
.footer-name { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.footer-note { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .5); }

/* ── Feedback dialog ─────────────────────────────────── */
.feedback-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 24px; overflow: auto; background: #fff; color: var(--ink); }
.feedback-dialog::backdrop { background: rgba(13, 18, 16, .6); backdrop-filter: blur(6px); }
body.feedback-open { overflow: hidden; }
.feedback-shell { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 540px; }
.feedback-intro { position: relative; display: flex; align-items: flex-end; padding: 36px; background: var(--brand); color: #fff; }
.feedback-intro h2 { margin-top: 14px; font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.feedback-intro-copy { margin-top: 14px; opacity: .9; }
.feedback-close { position: absolute; top: 18px; left: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; cursor: pointer; }
.feedback-close:hover { background: rgba(255, 255, 255, .3); }
.feedback-form, .feedback-success { display: grid; gap: 18px; align-content: start; padding: 36px; }
.feedback-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.feedback-form legend { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 500 16px/1.4 "Inter Tight", "PingFang TC", system-ui, sans-serif; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.feedback-hint, .feedback-privacy { font-size: 13px; color: var(--muted); }
.feedback-privacy a { color: var(--deep); text-decoration: underline; }
.feedback-form-status { min-height: 1em; font-size: 14px; font-weight: 600; color: #B42318; }
.feedback-submit { justify-self: start; }
.feedback-success { place-content: center; justify-items: start; }
.feedback-success-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 24px; font-weight: 800; }
.feedback-success h3 { font-size: 28px; font-weight: 800; }
.feedback-success p { color: var(--muted); }

/* ── Reveal (bhb-home.js adds .is-visible) ───────────── */
[data-reveal], [data-service-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .25s, padding .25s var(--ease); }
[data-reveal].is-visible, [data-service-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr auto; gap: 10px 20px; }
  .entry .n { grid-column: 1 / -1; font-size: 40px; }
  .entry p { grid-column: 1 / -1; }
  .entry .arr { grid-row: 2; grid-column: 2; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-name { grid-column: 1 / -1; }
  .feedback-shell { grid-template-columns: 1fr; }
  .feedback-intro { min-height: 200px; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .9; }
  .menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
  .is-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .is-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--header); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px var(--pad) 22px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
  .is-open .site-nav { display: flex; }
  .site-nav > a:not(.pill) { padding: 14px 0; font-size: 17px; opacity: 1; border-bottom: 1px solid var(--line); }
  .lang-switch { padding: 14px 0; opacity: 1; }
  .lang-switch select { flex: 1; font-size: 17px; }
  .site-nav .pill { justify-content: center; height: 50px; margin-top: 10px; background: var(--ink); color: #fff; }
  .hero { min-height: 88svh; }
  .hero-mark { width: 120vw; right: -50vw; top: 36%; opacity: .16; }
  .hero-foot { flex-direction: column; align-items: start; }
  .hero-title-row { flex-direction: column; align-items: start; gap: 28px; }
  .hero-logo { width: min(72vw, 300px); margin-bottom: 0; }
  .list { padding: 72px var(--pad) 80px; }
  .list-head { flex-direction: column-reverse; align-items: start; }
  .company { padding-bottom: 80px; }
  .band { padding: 80px var(--pad); }
  .band-mark { width: 110vw; right: -45vw; }
  .field-row { grid-template-columns: 1fr; }
  .feedback-form, .feedback-success, .feedback-intro { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-service-reveal] { opacity: 1; transform: none; }
}

/* ══ Motion（2026-10-18）══════════════════════════════════════════════════
   老闆：「按鈕跟動畫都太死板」「不管手機還是電腦，畫面滑下去就直接開始動」。
   所以所有主要動效都由「捲動進畫面」觸發（bhb-home.js 加 .is-visible），手機也看得到；
   hover 只是電腦上的加分，放在 (hover: hover) 裡，免得手機點完卡在 hover 狀態。 */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

@keyframes line-up  { from { transform: translateY(110%); } to { transform: none; } }
@keyframes rise     { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes wipe     { from { clip-path: inset(0 0 100% 0); transform: translateY(34px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes pop      { from { opacity: 0; transform: scale(.2) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes pop-in   { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes mark-in  { from { opacity: 0; scale: .6; } }
@keyframes shine    { from { left: -60%; } to { left: 130%; } }
@keyframes nudge    { 0%, 100% { transform: none; } 50% { transform: translate(4px, -4px); } }
@keyframes draw     { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 首屏：三行標題依序從下面升上來，白風車轉進場，之後跟着捲動繼續轉（--spin 由 bhb-site.js 設） */
.hero h1 .line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; animation: line-up 1.05s var(--ease) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .36s; }
.hero-mark, .band-mark { rotate: var(--spin, 0deg); will-change: rotate; }
.hero-mark { animation: mark-in 1.6s var(--ease) .1s both; }

/* 會「畫出來」的線：首屏分隔線、清單標題粗線、每一列底線、公司三欄的粗線 */
.hero-foot { position: relative; border-top: 0; }
.hero-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: rgba(255, 255, 255, .5); transform: scaleX(0); transform-origin: left; }
.hero-foot.is-visible::before { animation: draw 1.2s var(--ease) .45s both; }
.list-head { position: relative; border-bottom: 0; }
.list-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.list-head.is-visible::after { animation: draw 1.1s var(--ease) .1s both; }
.entry { position: relative; border-bottom: 0; }
.entry::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.entry.is-visible::after { animation: draw 1s var(--ease) .15s both; }
.pillars { position: relative; border-top: 0; }
.pillars::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.pillars.is-visible::before { animation: draw 1.1s var(--ease) both; }

/* 大標題從下往上「擦」出來 */
.list-head.is-visible h2,
.company .statement.is-visible,
.band-inner.is-visible h2 { animation: wipe 1s var(--ease) .05s backwards; }

/* 清單每一列：編號、標題、內文依序升起，圓形箭頭彈出來 */
.entry.is-visible .n  { animation: rise .8s var(--ease) .05s backwards; }
.entry.is-visible h3  { animation: rise .8s var(--ease) .13s backwards; }
.entry.is-visible p   { animation: rise .8s var(--ease) .21s backwards; }
.entry.is-visible .arr { animation: pop .9s var(--spring) .32s backwards; }

/* 公司三欄依序升起，A／B／C 圓點彈出 */
.pillars.is-visible .pillar { animation: rise .85s var(--ease) backwards; }
.pillars.is-visible .pillar:nth-child(2) { animation-delay: .12s; }
.pillars.is-visible .pillar:nth-child(3) { animation-delay: .24s; }
.pillars.is-visible .pillar-n { animation: pop .9s var(--spring) .3s backwards; }
.pillars.is-visible .pillar:nth-child(2) .pillar-n { animation-delay: .42s; }
.pillars.is-visible .pillar:nth-child(3) .pillar-n { animation-delay: .54s; }

/* 聯絡區：說明文字淡入，三顆按鈕依序彈進來 */
.band-inner.is-visible .band-intro { animation: rise .8s var(--ease) .25s backwards; }
.band-inner.is-visible .band-actions .btn { animation: pop-in .75s var(--spring) backwards; }
.band-inner.is-visible .band-actions .btn:nth-child(1) { animation-delay: .4s; }
.band-inner.is-visible .band-actions .btn:nth-child(2) { animation-delay: .5s; }
.band-inner.is-visible .band-actions .btn:nth-child(3) { animation-delay: .6s; }

/* 按鈕：進畫面時掃過一道光、箭頭點兩下；點下去會縮一下再彈回；電腦上 hover 時顏色從左邊推進來 */
.btn, .pill { position: relative; overflow: hidden; isolation: isolate; transition: transform .5s var(--spring), color .35s, border-color .35s, background-color .35s; }
.btn > span, .pill > span { position: relative; z-index: 1; display: inline-block; }
.btn > span:last-child, .pill > span:last-child { transition: transform .5s var(--spring); }
.btn::before, .pill::before { content: ""; position: absolute; inset: -2px; z-index: 0; border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform .55s var(--ease); }
.btn::after, .pill::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 38%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); }
.btn-white::after, .site-header:not(.is-light) .pill::after { background: linear-gradient(105deg, transparent, rgba(42, 157, 128, .35), transparent); }
.btn-ink::before { background: var(--brand); }
.btn-white::before { background: var(--ink); }
.btn-line::before { background: #fff; }
.btn-outline::before { background: var(--ink); }
.pill::before { background: var(--ink); }
.is-light .pill::before { background: var(--brand); }

.is-visible .btn::after { animation: shine 1.15s var(--ease) .7s both; }
.is-visible .btn > span:last-child { animation: nudge .9s var(--spring) 1.1s 2; }
.site-header .pill::after { animation: shine 1.2s var(--ease) 1.4s both; }

.btn:active, .pill:active { transform: scale(.94); transition-duration: .12s; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-3px); }
  .btn:hover::before, .pill:hover::before { transform: scaleX(1); }
  .btn:hover > span:last-child, .pill:hover > span:last-child { transform: translate(4px, -4px); }
  .btn-ink:hover { background: var(--ink); }
  .btn-white:hover, .btn-outline:hover, .pill:hover { color: #fff; }
  .btn-line:hover { color: var(--deep); border-color: #fff; background: transparent; }
  .entry:hover .n { transform: translateX(6px); }
  .entry .n { transition: transform .5s var(--spring); }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span { transform: none; }
  .hero-foot::before, .list-head::after, .entry::after, .pillars::before { transform: none; }
  .btn::after, .pill::after { display: none; }
}
