:root {
  --bg: #ffffff;
  --soft: #f4f6f7;
  --surface: #ffffff;
  --ink: #4a4a4a;
  --head: #333333;
  --muted: #7a7d80;
  --line: #e1e4e6;
  --accent: #f5c32c;
  --on-accent: #333333;
  --accent-text: #8a6400;
  --band: #3b3d3f;
  --on-band: #f2f2f2;
  --band-muted: #b8bcbf;
  --navy: #0b4a6b;
  --sky: #e4f1f7;
  --ph: #edf0f2;
  --conc: #ebebeb;
  --conc-img: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27240%27%20height%3D%27240%27%3E%3Cfilter%20id%3D%27n%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.9%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.35%200%200%200%200%20.35%200%200%200%200%20.35%20.9%200%200%200%20-.3%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27240%27%20height%3D%27240%27%20filter%3D%27url%28%23n%29%27%2F%3E%3C%2Fsvg%3E");
  --flow-y: #efd25a;
  --flow-g: #d6d6d6;
  --flow-gt: #2c2c2c;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416; --soft: #181b1e; --surface: #1a1d20; --ink: #d0d3d6; --head: #f0f1f2; --muted: #9a9ea2; --line: #2a2e32;
    --accent: #f5c32c; --on-accent: #1a1a1a; --accent-text: #f5c32c; --band: #0c0e10; --on-band: #f2f2f2; --band-muted: #8f9396;
    --navy: #5fb1d2; --sky: #16222a; --ph: #1d2226; --conc: #1b1e21; --conc-img: none; --flow-y: #f5c32c; --flow-g: #383c40; --flow-gt: #e8eaec; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121416; --soft: #181b1e; --surface: #1a1d20; --ink: #d0d3d6; --head: #f0f1f2; --muted: #9a9ea2; --line: #2a2e32;
  --accent: #f5c32c; --on-accent: #1a1a1a; --accent-text: #f5c32c; --band: #0c0e10; --on-band: #f2f2f2; --band-muted: #8f9396;
  --navy: #5fb1d2; --sky: #16222a; --ph: #1d2226; --conc: #1b1e21; --conc-img: none; --flow-y: #f5c32c; --flow-g: #383c40; --flow-gt: #e8eaec; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.9; letter-spacing: .02em; }
h1, h2, h3 { color: var(--head); font-weight: 400; line-height: 1.4; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
b { font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page[hidden] { display: none; }
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: var(--ph); }
.photo.sq, .photo.r43 { aspect-ratio: 4 / 3; }
.photo.portrait { aspect-ratio: 4 / 5; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--accent); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.brand img { width: 46px; height: auto; display: block; }
.brand span { display: flex; flex-direction: column; }
.brand b { font-size: 1.3rem; letter-spacing: .1em; color: var(--head); font-weight: 500; }
.brand small { font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
nav.main { display: flex; gap: 2px; align-items: center; }
nav.main a { text-decoration: none; padding: 26px 14px 20px; font-size: .95rem; border-bottom: 4px solid transparent; font-weight: 400; }
nav.main a:hover { color: var(--navy); }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--head); }
.head-tel { background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 18px; border-radius: 999px; white-space: nowrap; letter-spacing: .06em; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 4px; padding: 8px 14px; font: inherit; cursor: pointer; }
@media (max-width: 1000px) {
  .menu-btn { display: block; }
  .head-tel { display: none; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 14px; }
  nav.main.open { display: flex; }
  nav.main a { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
}

/* shared pieces */
.sec { padding-block: 72px; }
.sec.soft { background: var(--soft); }
.sec.dark { background: var(--band); color: var(--on-band); }
.sec.dark h2, .sec.dark h3 { color: var(--on-band); }
@media (max-width: 640px) { .sec { padding-block: 48px; } }
.st { text-align: center; }
.st h1, .st h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); letter-spacing: .12em; font-weight: 300; }
.st p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.sec.dark .st p { color: var(--band-muted); }
.pagehead { padding-block: 64px 28px; }
.uh { display: inline-block; font-size: 1.2rem; font-weight: 400; padding-bottom: 4px; border-bottom: 4px solid var(--accent); margin-bottom: 14px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500; padding: 10px 24px; border-radius: 4px; border: 0; font: inherit; font-weight: 500; cursor: pointer; letter-spacing: .06em; }
.btn.pill { border-radius: 999px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g3 { grid-template-columns: minmax(0, 1fr); } .g2 { grid-template-columns: minmax(0, 1fr); } }
.ph { position: relative; background: repeating-linear-gradient(135deg, var(--ph) 0 12px, transparent 12px 24px), var(--surface); border: 1.5px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 12px; min-height: 180px; }
.ph.sq { aspect-ratio: 4 / 3; min-height: 0; }
.ph.wide { min-height: 340px; border-radius: 0; }
.todo { border-bottom: 1.5px dashed var(--accent-text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.split.first { margin-top: 0; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 40px; } .split.rev .ph, .split.rev .imgs { order: 2; } }
.split p { color: var(--ink); }
.split p + p { margin-top: 10px; }
.imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.imgs .ph { min-height: 260px; }
.list { padding-left: 1.3em; margin: 8px 0 0; }
.list li { margin-bottom: 6px; }
.note { margin-top: 40px; padding: 14px 18px; background: var(--soft); border-left: 4px solid var(--accent); font-size: .9rem; color: var(--muted); }
.tablebox { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .92rem; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
th { background: var(--band); color: var(--on-band); font-weight: 400; }
td { border-bottom: 1px solid var(--line); }
td:first-child { white-space: nowrap; }

/* hero */
.hero { background: linear-gradient(110deg, var(--bg) 0%, var(--sky) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: center; min-height: 440px; }
.hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); letter-spacing: .1em; font-weight: 500; }
.hero p { margin-top: 10px; color: var(--muted); }
.hero .btn { margin-top: 26px; }
.hero .ph { min-height: 380px; border-style: dashed; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 36px; } .hero .ph { min-height: 220px; } }

/* circles */
.circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; margin-top: 40px; }
.circles a { text-decoration: none; text-align: center; width: 170px; }
.circles .circ { width: 170px; height: 170px; border-radius: 50%; border: 1.5px dashed var(--line); background: repeating-linear-gradient(135deg, var(--ph) 0 12px, transparent 12px 24px), var(--surface); display: grid; place-items: center; font-size: .8rem; color: var(--muted); transition: border-color .15s; }
.circles a:hover .circ { border-color: var(--accent); border-style: solid; }
.circles .circ.has { border: 3px solid var(--line); background: var(--ph); overflow: hidden; padding: 0; }
.circles .circ img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.circles span.lb { display: block; margin-top: 12px; font-size: 1.05rem; color: var(--head); }
@media (prefers-reduced-motion: reduce) { .circles .circ { transition: none; } html { scroll-behavior: auto; } }

.sec.conc { background-color: var(--conc); background-image: var(--conc-img); }
.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 36px; }
.fc { width: 160px; height: 160px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #2c2c2c; letter-spacing: .06em; line-height: 1.3; font-size: .95rem; }
.fc.y { background: var(--flow-y); }
.fc.g { background: var(--flow-g); color: var(--flow-gt); }
.fc svg { width: 54px; height: 54px; flex: none; }
.fc.num { font-size: 1.05rem; }
/* process: alternating filled / outlined circles */
.proc { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; margin-top: 40px; }
.proc div { width: 150px; text-align: center; }
.proc .c { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px; background: var(--accent); color: var(--on-accent); }
.proc div:nth-child(even) .c { background: transparent; border: 2px solid var(--accent); color: var(--head); }
.proc .c b { font-size: 1.6rem; font-weight: 300; letter-spacing: .06em; line-height: 1.2; }
.proc .c small { font-size: .75rem; }
.proc .lb { margin-top: 10px; font-size: 1rem; color: var(--head); }

/* image cards with dark label bar */
.lcard { text-decoration: none; display: block; }
.lcard .bar { background: var(--band); color: var(--on-band); text-align: center; padding: 10px; font-weight: 400; letter-spacing: .1em; }

/* dark band with outlined boxes */
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
@media (max-width: 800px) { .boxes { grid-template-columns: minmax(0, 1fr); } }
.box { border: 1px solid var(--band-muted); text-align: center; padding: 28px 22px; }
.box svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 8px; display: block; }
.box h3 { font-size: 1.15rem; margin-bottom: 6px; }
.box p { font-size: .92rem; color: var(--band-muted); }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 40px; }
@media (max-width: 560px) { .feat { grid-template-columns: minmax(0, 1fr); } }
.feat div { text-align: center; padding: 32px 20px; }
.feat div:nth-child(odd) { background: var(--band); color: var(--on-band); }
.feat div:nth-child(odd) h3 { color: var(--on-band); }
.feat h3 { font-size: 1.2rem; margin-bottom: 4px; }
.feat p { font-size: .9rem; opacity: .85; }

/* steps list (inspection) */
.steps { list-style: none; padding: 0; margin: 24px auto 0; max-width: 560px; display: grid; gap: 8px; }
.steps li { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.steps li b { color: var(--accent-text); font-weight: 500; white-space: nowrap; }

/* certs */
.cert .ph { aspect-ratio: 16 / 10; min-height: 0; }
.cert small { display: block; text-align: center; color: var(--muted); font-size: .8rem; margin-top: 6px; }


.mapbox { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.mapframe { width: 100%; height: 420px; display: block; border: 0; background: var(--ph); }
@media (max-width: 560px) { .mapframe { height: 320px; } }
.maplabel { color: var(--accent-text); font-size: .92rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; max-width: 760px; margin-inline: auto; }
form { display: grid; gap: 18px; }
label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: .92rem; }
label input, label select, label textarea { flex: 1 0 100%; }
label em { color: var(--accent-text); font-style: normal; font-size: .8rem; margin-left: 6px; }
input, select, textarea { font: inherit; font-weight: 300; color: var(--ink); background: var(--surface); border: 0; border-bottom: 1.5px solid var(--line); padding: 8px 2px; width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--accent); outline: none; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
#formmsg { color: var(--accent-text); min-height: 1.6em; font-weight: 400; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 560px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.ways .item h3 { font-size: 1.1rem; margin: 10px 0 4px; letter-spacing: .1em; }
.ways .item p { font-size: .9rem; color: var(--muted); word-break: break-all; }
.ways .qrimg { width: 120px; height: 120px; display: block; border: 1px solid var(--line); background: #fff; }
.ways .qr { width: 120px; height: 120px; min-height: 0; padding: 4px; font-size: .75rem; }
.ways .dial { width: 120px; height: 120px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); }
.ways .dial svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ways .map { grid-column: 1 / -1; min-height: 220px; }
.ways .map a { color: var(--accent-text); }

/* footer */
footer { background: var(--band); color: var(--on-band); }
footer .scope { padding-block: 52px 32px; text-align: center; }
footer .scope svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; margin-right: 10px; }
footer .scope h2 { font-size: 1.3rem; color: var(--on-band); display: inline-flex; align-items: center; letter-spacing: .12em; }
footer .scope p { margin-top: 12px; font-size: .95rem; }
footer .scope .btn { margin-top: 20px; }
footer .info { border-top: 1px solid rgba(255,255,255,.16); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; font-size: .9rem; color: var(--accent); }
footer .copy { text-align: center; color: var(--band-muted); font-size: .8rem; padding-bottom: 18px; }

.float { position: fixed; z-index: 15; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.float a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--accent); text-decoration: none; font-size: .72rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

body { margin: 0; }
img { max-width: 100%; }

    .aboutbanner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; background: var(--soft); }
    .aboutbanner .photo.banner { height: 460px; }
    .abouttxt { padding: 32px max(16px, calc((100vw - 1120px) / 2)) 32px 48px; }
    @media (max-width: 800px) { .aboutbanner { grid-template-columns: minmax(0, 1fr); } .aboutbanner .photo.banner { height: 280px; } .abouttxt { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); } }
