/* =========================================================
   俊傑工程 — 網站樣式
   色調取自公司 LOGO 的灰藍 (slate) 色系
   ========================================================= */

:root {
  /* Logo 色系 */
  --slate-950: #1f252d;
  --slate-900: #2a313b;
  --slate-800: #3a4451;
  --slate-700: #4e5967;   /* logo 最深色塊 */
  --slate-600: #66717f;
  --slate-500: #87919e;   /* logo 中灰 */
  --slate-400: #a3abb6;
  --slate-300: #c1c7cf;
  --slate-200: #dde1e6;
  --slate-100: #eceef1;
  --slate-50:  #f5f6f8;   /* logo 最淺色 */
  --white: #ffffff;

  /* 淺藍點綴色 */
  --sky-50:  #f2f8fd;
  --sky-100: #e3f0fa;
  --sky-200: #c6e1f5;
  --sky-300: #9ccbec;
  --sky-400: #6aafdf;
  --sky-500: #3f93cf;
  --sky-600: #2c78b0;
  --sky-700: #235f8c;

  --text: var(--slate-900);
  --text-muted: var(--slate-600);
  --bg: var(--white);
  --bg-alt: var(--sky-50);
  --accent: var(--sky-600);
  --accent-soft: var(--sky-100);
  --border: var(--slate-200);
  --primary: var(--slate-700);
  --primary-hover: var(--slate-800);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(31, 37, 45, .06), 0 1px 3px rgba(31, 37, 45, .08);
  --shadow: 0 4px 12px rgba(31, 37, 45, .08), 0 2px 4px rgba(31, 37, 45, .05);
  --shadow-lg: 0 18px 40px rgba(31, 37, 45, .14);

  --container: 1180px;
  --header-h: 76px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: .02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 待客戶提供的資料 — 上線前請替換 */
.todo { color: #b4541a; background: #fff3e8; padding: 0 6px; border-radius: 4px; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--white); color: var(--slate-900); }
.btn-light:hover { background: var(--slate-100); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline { border-color: var(--slate-300); color: var(--slate-800); }
.btn-outline:hover { border-color: var(--slate-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* 毛玻璃效果放喺獨立底層：如果直接加喺 header，
   手機版彈出選單（position: fixed）會被困喺 header 入面，躲咗喺大圖後面 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 6px; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: .12em; color: var(--slate-900); }
.brand-tag { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; color: var(--slate-500); line-height: 1.2; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 500; font-size: 15.5px; letter-spacing: .06em; color: var(--slate-700);
  transition: color .2s, background .2s;
}
.main-nav a.nav-link:hover { color: var(--slate-950); background: var(--slate-50); }
.main-nav a.nav-link.active { color: var(--slate-950); font-weight: 700; }
.main-nav a.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--sky-500);
}
.main-nav li { position: relative; }
.main-nav .caret { width: 14px; height: 14px; transition: transform .2s; }
.main-nav .nav-cta { margin-left: 10px; padding: 10px 22px; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.dropdown a:hover { background: var(--sky-50); }
.dropdown .dd-icon {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.dropdown .dd-icon svg { width: 18px; height: 18px; }
.dropdown small { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.4; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sky-200);
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--sky-700);
  transition: background .2s, border-color .2s;
}
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch:hover { background: var(--sky-50); border-color: var(--sky-300); }
.lang-mobile { display: none; }
.lang-switch, .brand-name, .brand-tag, .main-nav a.nav-link, .nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; color: var(--slate-900);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Facets (logo 圖案裝飾) ---------- */
.facets { position: absolute; pointer-events: none; color: var(--white); }
.facets svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(720px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  color: var(--white);
  background: var(--slate-900);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
/* 首頁插畫本身已有 logo 切面，只需左邊加深讓文字清晰 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(31,37,45,.85) 0%, rgba(31,37,45,.55) 45%, rgba(31,37,45,0) 70%);
}
.hero .facets { display: none; }
.hero-content { max-width: 640px; padding: 80px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .28em; color: var(--sky-300);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: .14em; margin-bottom: 18px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--slate-200); max-width: 34em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--slate-200); }
.hero-points svg { width: 20px; height: 20px; color: var(--sky-300); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--slate-900) 0%, var(--slate-700) 55%, #3f7299 100%);
  color: var(--white); padding: 72px 0 64px;
}
.page-header .facets { right: -40px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%); opacity: .45; z-index: -1; }
.page-header h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: .12em; }
.page-header p { margin-top: 12px; color: var(--slate-300); font-size: 17px; max-width: 40em; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--sky-300); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-kicker {
  display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: .26em;
  color: var(--accent); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: .08em; }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 17px; }

/* ---------- Service cards (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--slate-300); }
.service-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--slate-100); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .thumb img { transform: scale(1.04); }
.service-card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-top: -52px; margin-bottom: 16px;
  position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--slate-700), var(--sky-600)); color: var(--white); box-shadow: var(--shadow);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 22px; margin-bottom: 14px; }
.check-list li { position: relative; padding-left: 26px; color: var(--slate-700); }
.check-list li + li { margin-top: 6px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px;
  border-left: 2px solid var(--sky-500); border-bottom: 2px solid var(--sky-500);
  transform: rotate(-45deg);
}
.card-link {
  margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--slate-800); font-size: 15px;
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s; }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Feature (why us) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media .main-img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.split-media .sub-img {
  position: absolute; right: -28px; bottom: -32px; width: 44%;
  aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow-lg);
}
.split-media .logo-badge {
  position: absolute; left: -24px; top: 32px; width: 92px; height: 92px; padding: 10px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.feature h4 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 8px; }
.feature .num {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.feature p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left;
  font: inherit; color: var(--white); cursor: pointer;
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--slate-800);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,37,45,0) 40%, rgba(31,37,45,.9) 100%);
}
.project-card:hover img { transform: scale(1.05); }
.project-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 1; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: var(--white);
}
.project-card h3 { font-size: 18px; margin-top: 10px; letter-spacing: .04em; }
.project-card .count { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--slate-300); }
.project-card .count svg { width: 15px; height: 15px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(110deg, var(--slate-800) 0%, var(--slate-700) 45%, var(--sky-600) 100%);
  color: var(--white); border-radius: 20px; padding: 56px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta .facets { right: 12%; top: 50%; width: 320px; height: 320px; transform: translateY(-50%); opacity: .35; z-index: -1; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: .08em; }
.cta p { margin-top: 8px; color: var(--slate-200); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-intro .prose p + p { margin-top: 18px; }
.prose { font-size: 17px; color: var(--slate-800); }
.prose strong { color: var(--slate-950); }
.about-logo-card {
  background: linear-gradient(180deg, var(--sky-50), var(--white)); border: 1px solid var(--sky-200); border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}
.about-logo-card img { width: 180px; margin: 0 auto 20px; mix-blend-mode: multiply; }
.about-logo-card h3 { font-size: 26px; letter-spacing: .16em; }
.about-logo-card p { color: var(--text-muted); margin-top: 6px; font-size: 15px; }
.about-logo-card .divider { height: 1px; background: var(--border); margin: 24px 0; }
.about-logo-card ul { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); font-size: 14px; color: var(--slate-700); }

.about-card {
  background: linear-gradient(180deg, var(--sky-50), var(--white)); border: 1px solid var(--sky-200);
  border-radius: var(--radius-lg); padding: 32px;
}
.about-card-top { display: flex; align-items: center; gap: 16px; }
.about-card-top img { width: 64px; height: 64px; border-radius: 10px; mix-blend-mode: multiply; flex: none; }
.about-card-top h3 { font-size: 22px; letter-spacing: .12em; }
.about-card-top p { color: var(--text-muted); font-size: 14.5px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 9px 16px; border-radius: 999px; background: var(--slate-800); color: var(--white);
  font-weight: 600; font-size: 15px; letter-spacing: .04em;
}
.cert-badge svg { width: 18px; height: 18px; color: var(--sky-300); flex: none; }
.about-card h4 {
  margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid var(--sky-200);
  font-size: 14px; letter-spacing: .16em; color: var(--accent);
}
html[lang="en"] .about-card-top h3 { letter-spacing: 0; font-size: 20px; }
html[lang="en"] .about-card h4 { letter-spacing: .1em; text-transform: uppercase; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; }
.value-card .v-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.value-card .v-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 19px; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 15.5px; }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client-item {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  font-weight: 600; color: var(--slate-800);
}
.client-item svg { width: 26px; height: 26px; color: var(--sky-500); flex: none; }

/* ---------- Services page ---------- */
.service-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.service-tabs ul { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.service-tabs ul::-webkit-scrollbar { display: none; }
.service-tabs a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; font-weight: 500; color: var(--slate-700);
  border: 1px solid var(--border); transition: all .2s;
}
.service-tabs a svg { width: 17px; height: 17px; }
.service-tabs a:hover { border-color: var(--sky-300); background: var(--sky-50); }
.service-tabs a.active { background: var(--sky-600); border-color: var(--sky-600); color: var(--white); }

.service-block { scroll-margin-top: calc(var(--header-h) + 50px); }
.service-block + .service-block { border-top: 1px solid var(--border); }
.item-card.wide { grid-column: 1 / -1; grid-template-columns: 380px 1fr; }
.item-card.wide .item-img { min-height: 300px; }
.item-card.wide .item-body { padding: 34px 38px; align-self: center; }
.item-card.wide h3 { font-size: 22px; }
.item-card.wide .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.item-card.wide .check-list li + li { margin-top: 0; }
.service-block-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 40px; }
.service-block-head .big-icon {
  width: 68px; height: 68px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--slate-700), var(--sky-600)); color: var(--white); box-shadow: var(--shadow);
}
.service-block-head .big-icon svg { width: 34px; height: 34px; }
.service-block-head h2 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: .08em; }
.service-block-head p { color: var(--text-muted); margin-top: 6px; font-size: 17px; max-width: 46em; }

.item-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.item-card {
  display: grid; grid-template-columns: 200px 1fr; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow .25s, border-color .25s;
}
.item-card:hover { box-shadow: var(--shadow); border-color: var(--slate-300); }
.item-card .item-img { position: relative; background: var(--slate-100); min-height: 200px; }
.item-card .item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-card .item-img.placeholder { display: grid; place-items: center; color: var(--sky-400); background: linear-gradient(135deg, var(--sky-50), var(--sky-200)); }
.item-card .item-img.placeholder svg { width: 54px; height: 54px; }
.item-card .item-body { padding: 24px 26px; }
.item-card h3 { font-size: 19px; margin-bottom: 8px; }
.item-card p { color: var(--text-muted); font-size: 15.5px; }
.item-card .check-list { margin-top: 12px; font-size: 15px; }
.wa-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--sky-700); transition: background .2s, color .2s;
}
.wa-link svg { width: 17px; height: 17px; }
.wa-link:hover { background: var(--sky-600); color: var(--white); }

.gallery-strip { margin-top: 36px; }
.gallery-strip h4 { font-size: 15px; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery-row button {
  padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; background: var(--slate-100);
}
.gallery-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery-row button:hover img { transform: scale(1.06); opacity: .9; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white);
}
.contact-card .c-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.contact-card .c-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 15px; color: var(--text-muted); font-weight: 500; letter-spacing: .08em; }
.contact-card .value { font-size: 18px; font-weight: 600; color: var(--slate-950); margin-top: 2px; }
.contact-card a.value:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-card { background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--radius-lg); padding: 36px; }
.form-card h2 { font-size: 26px; letter-spacing: .06em; }
.form-card > p { color: var(--text-muted); margin-top: 6px; margin-bottom: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--slate-800); }
.field label .req { color: #b4541a; margin-left: 2px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--slate-300); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(63,147,207,.2);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-note { font-size: 13.5px; color: var(--text-muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-950); color: var(--slate-300); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 50px; height: 50px; border-radius: 8px; }
.footer-brand span { font-size: 22px; font-weight: 700; letter-spacing: .14em; color: var(--white); }
.site-footer p { font-size: 15px; line-height: 1.8; }
.site-footer h4 { color: var(--white); font-size: 16px; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { font-size: 15px; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; font-size: 15px; }
.footer-contact a, .contact-card .value { overflow-wrap: anywhere; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--sky-400); }
.footer-bottom {
  margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px; color: var(--slate-500); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,24,30,.94);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox figcaption { color: var(--slate-200); margin-top: 14px; font-size: 15px; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--white); transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pending { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
}

/* ---------- English version ---------- */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4,
html[lang="en"] .hero h1, html[lang="en"] .page-header h1, html[lang="en"] .section-head h2,
html[lang="en"] .service-block-head h2, html[lang="en"] .cta h2, html[lang="en"] .about-logo-card h3,
html[lang="en"] .footer-brand span { letter-spacing: 0; }
html[lang="en"] .brand-name { font-size: 19px; letter-spacing: .01em; }
html[lang="en"] .brand-tag { letter-spacing: .08em; text-transform: uppercase; font-size: 10.5px; }
html[lang="en"] .main-nav a.nav-link { letter-spacing: 0; font-size: 15px; padding: 10px 13px; }
html[lang="en"] .hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
html[lang="en"] .eyebrow, html[lang="en"] .section-kicker { letter-spacing: .14em; text-transform: uppercase; }
html[lang="en"] .btn { letter-spacing: .01em; }
html[lang="en"] .footer-brand span { font-size: 19px; }
html[lang="en"] .about-logo-card h3 { font-size: 24px; }

/* =========================================================
   Responsive
   ========================================================= */
/* 英文公司名較長：手提電腦闊度收細，避免撞到選單 */
@media (max-width: 1180px) and (min-width: 901px) {
  html[lang="en"] .brand-name { font-size: 16px; }
  html[lang="en"] .main-nav a.nav-link { padding: 10px 9px; }
  html[lang="en"] .main-nav .nav-cta { padding: 10px 16px; }
  html[lang="en"] .site-header .container { gap: 16px; }
}
@media (max-width: 1000px) and (min-width: 901px) {
  html[lang="en"] .brand-name { white-space: normal; line-height: 1.2; max-width: 9.5em; display: block; }
  html[lang="en"] .brand-tag { display: none; }
}
@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { aspect-ratio: 4 / 3; }
  .value-grid, .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .item-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 16px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav a.nav-link { padding: 16px 4px; font-size: 17px; }
  .main-nav a.nav-link.active::after { display: none; }
  .main-nav .caret { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0;
  }
  .main-nav > ul > li.nav-cta-item { border: 0; padding-top: 20px; }
  .main-nav > ul > li.lang-item { display: none; }
  .lang-mobile { display: inline-flex; margin-left: auto; margin-right: -12px; padding: 6px 12px; }
  .main-nav .nav-cta { margin: 0; width: 100%; }
  body.nav-open { overflow: hidden; }

  .service-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .split, .about-intro, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .split-media { max-width: 520px; margin: 0 auto 24px; width: calc(100% - 28px); }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .hero::before { background: linear-gradient(180deg, rgba(31,37,45,.82), rgba(31,37,45,.62)); }
  .page-header .facets { right: -120px; opacity: .3; }
  .cta { padding: 44px 32px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  html[lang="en"] .brand-name { font-size: 14.5px; white-space: normal; line-height: 1.2; }
  html[lang="en"] .brand-tag { display: none; }
  .site-header .container { gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .hero-content { padding: 64px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-points { gap: 10px 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .value-grid, .client-grid { grid-template-columns: 1fr; }
  .item-card, .item-card.wide { grid-template-columns: 1fr; }
  .item-card.wide .item-img { min-height: 0; }
  .item-card.wide .item-body { padding: 24px 22px; }
  .item-card.wide .check-list { grid-template-columns: 1fr; }
  .item-card .item-img { min-height: 0; aspect-ratio: 16 / 9; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-media .sub-img { right: -14px; bottom: -20px; }
  .split-media .logo-badge { left: -12px; width: 72px; height: 72px; }
  .cta { padding: 36px 24px; border-radius: 16px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
