:root {
  --crimson: #C41932;
  --crimson-deep: #9A1226;
  --charcoal: #2D3039;
  --ink: #16181E;
  --gold: #C9A974;
  --gold-soft: #E4D2AA;
  --cream: #F4EFE6;
  --paper: #FAF8F4;
  --muted: #6E717A;
  --line: rgba(45, 48, 57, 0.12);
  --line-gold: rgba(201, 169, 116, 0.45);
  --white: #FFFFFF;
  --shadow: 0 24px 60px rgba(22, 24, 30, 0.12);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "Manrope", system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; }
.en { font-family: "Manrope", "Noto Sans TC", sans-serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250, 248, 244, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 244, 0.94);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.brand img, .brand .mark {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: 12% center;
  transform: scale(1.08);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(45,48,57,.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.brand-text span { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.nav {
  display: flex; gap: 22px; margin-left: 8px;
  font-size: 13.5px; color: var(--charcoal);
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--crimson);
  transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 600;
}
.lang button {
  background: transparent; border: 0; padding: 7px 11px; cursor: pointer; color: var(--muted);
}
.lang button.active { background: var(--ink); color: var(--cream); }
.pill {
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: #eef6ee; color: #2f6b3a;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #2f6b3a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 20px; font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-deep); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(244,239,230,.35);
}
.btn-ghost.dark {
  color: var(--charcoal);
  border-color: var(--line);
}
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; place-items: end stretch;
  color: var(--cream);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: saturate(0.92) contrast(1.05);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,24,30,.28) 0%, rgba(22,24,30,.55) 48%, rgba(22,24,30,.88) 100%),
    linear-gradient(90deg, rgba(22,24,30,.55) 0%, rgba(22,24,30,.15) 60%);
}
.hero-content {
  position: relative; z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 72px;
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 48px);
  max-width: 760px;
  margin: 18px 0 18px;
  color: #fff;
}
.hero h1 em {
  font-style: normal; color: var(--gold-soft);
}
.hero-lead {
  max-width: 46ch; color: rgba(246,241,232,.82); font-size: 16.5px;
}
.hero-lead strong { color: var(--gold-soft); font-weight: 650; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.08);
  margin-top: 56px; border: 1px solid rgba(255,255,255,.1);
}
.hero-meta div {
  background: rgba(22,24,30,.35);
  padding: 18px 20px;
}
.hero-meta small {
  display: block; letter-spacing: .16em; text-transform: uppercase;
  font-size: 10px; color: var(--gold); margin-bottom: 6px;
}
.hero-meta b { font-size: 18px; font-weight: 650; color: #fff; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 12px; color: var(--ink); }
.section-head p { color: var(--muted); }

.highlights {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 28px; align-items: stretch;
}
.highlight-card {
  position: relative; overflow: hidden; min-height: 420px;
  background: var(--ink); color: var(--cream);
}
.highlight-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.highlight-card .inner { position: relative; z-index: 1; padding: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.highlight-card h3 { font-size: 28px; margin: 8px 0 10px; }
.side-grid { display: grid; gap: 16px; }
.side-item {
  background: #fff; border: 1px solid var(--line); padding: 22px 22px 20px;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
}
.icon-box {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--cream); color: var(--crimson);
}
.side-item h4 { font-size: 16px; margin-bottom: 4px; }
.side-item p { font-size: 13.5px; color: var(--muted); }

/* Services */
#services { background: #fff; }
.service-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
}
.service {
  grid-column: span 4;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 28px 26px 24px;
  display: flex; flex-direction: column; min-height: 340px;
  transition: border-color .25s, transform .25s var(--ease);
}
.service:hover { border-color: var(--gold); transform: translateY(-3px); }
.service.featured {
  grid-column: span 8;
  background: var(--ink);
  color: var(--cream);
  background-image: linear-gradient(180deg, rgba(22,24,30,.35), rgba(22,24,30,.78)), url("../assets/damper.jpg");
  background-size: cover; background-position: center;
}
.service.featured p, .service.featured li { color: rgba(246,241,232,.82); }
.service-tag {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 18px;
}
.service h3 { font-size: 22px; margin-bottom: 4px; }
.service .en-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.service.featured .en-sub { color: var(--gold-soft); }
.service ul { list-style: none; display: grid; gap: 8px; margin: 8px 0 22px; font-size: 14px; }
.service ul li { padding-left: 16px; position: relative; }
.service ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; background: var(--crimson);
}
.service.featured ul li::before { background: var(--gold); }
.service .more {
  margin-top: auto; font-size: 13px; font-weight: 650;
  color: var(--crimson); display: inline-flex; align-items: center; gap: 6px;
}
.service.featured .more { color: var(--gold-soft); }

/* Estimator */
#calculator { background: var(--cream); }
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--ink); color: var(--cream); overflow: hidden;
}
.calc-copy { padding: 48px 44px; }
.calc-copy h2 { color: #fff; font-size: 34px; margin: 10px 0 12px; }
.calc-copy p { color: rgba(246,241,232,.72); }
.calc-form { padding: 48px 44px; background: #1d2027; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.field select, .field input, .field textarea {
  width: 100%; background: #16181e; color: #fff;
  border: 1px solid rgba(255,255,255,.1); padding: 12px 14px; border-radius: 0;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: 1px solid var(--gold);
}
.result {
  margin: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px; display: grid; gap: 10px;
}
.result-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.result-row span { color: rgba(246,241,232,.6); }
.result-row b { color: var(--gold-soft); text-align: right; font-weight: 650; }

/* Facilities */
#facilities .bases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.base { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.base img { height: 260px; width: 100%; object-fit: cover; }
.base-body { padding: 26px; }
.num { font-family: "Manrope", sans-serif; font-size: 12px; letter-spacing: .2em; color: var(--crimson); font-weight: 700; }
.base h3 { font-size: 24px; margin: 6px 0 4px; }
.base .en-sub { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span {
  font-size: 12px; padding: 6px 10px; border: 1px solid var(--line);
  background: var(--cream); color: var(--charcoal);
}

/* Standards */
.standards {
  padding: 36px 0;
  background: var(--ink); color: var(--cream);
}
.standards-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
}
.standards-row b { letter-spacing: .2em; font-size: 12px; color: var(--gold); }
.std-list { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: rgba(246,241,232,.8); }

/* Contact */
#contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; }
.office {
  border-top: 1px solid var(--line); padding: 20px 0;
}
.office h4 { margin-bottom: 6px; }
.office p, .office a { color: var(--muted); font-size: 14.5px; }
.office a:hover { color: var(--crimson); }
.form {
  background: var(--paper); border: 1px solid var(--line); padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .field label { color: var(--muted); }
.form .field input, .form .field select, .form .field textarea {
  background: #fff; color: var(--charcoal); border: 1px solid var(--line);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-success {
  display: none; padding: 18px; background: #eef6ee; color: #2f6b3a; margin-bottom: 14px;
}
.form-success.show { display: block; }

/* Footer */
.site-footer {
  background: var(--ink); color: rgba(246,241,232,.7);
  padding: 48px 0 28px;
}
.foot-top {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 18% center; }
.foot-brand strong { display: block; color: #fff; font-size: 14px; }
.foot-brand span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.foot-links { display: flex; gap: 18px; font-size: 13px; }
.foot-links a:hover { color: var(--gold-soft); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; font-size: 12px;
}
.parent { display: flex; align-items: center; gap: 8px; }
.parent img { width: 22px; height: 22px; }

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--paper); z-index: 40; padding: 24px;
}
.mobile-nav.open { display: grid; gap: 16px; align-content: start; }
.mobile-nav a { font-size: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .nav { display: none; }
  .pill { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .highlights, .calc, .contact-grid, #facilities .bases { grid-template-columns: 1fr; }
  .service, .service.featured { grid-column: span 12; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
}
@media (max-width: 640px) {
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .brand-text span { display: none; }
  .hero-content { margin-bottom: 36px; }
  .calc-copy, .calc-form { padding: 28px 22px; }
}
