:root {
  --ink: #132033;
  --muted: #637083;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #dce3ec;
  --red: #c91f2e;
  --red-dark: #92131d;
  --navy: #071f3d;
  --blue: #0f5f9f;
  --gold: #d6a84c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.topbar-inner,
.header-inner,
.wrap,
.footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(19, 32, 51, .1);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 260px;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--red-dark);
  font-size: 21px;
  font-weight: 900;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: var(--red);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 31, 61, .94), rgba(7, 31, 61, .82) 46%, rgba(7, 31, 61, .54)),
    url("fire-engineering-bg.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -180px -260px auto;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(214, 168, 76, .34);
  border-radius: 999px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 52px;
  padding: 74px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #ffdca2;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border-radius: 7px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.button.secondary {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .1);
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.hero-panel h2 {
  color: var(--white);
  font-size: 26px;
  margin: 0 0 16px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.contact-list span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 800;
}

.contact-list strong {
  color: var(--white);
  font-size: 21px;
  line-height: 1.25;
}

main {
  padding: 68px 0 86px;
}

.section {
  margin-bottom: 64px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.18;
}

.section-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(7, 31, 61, .07);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 23px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.service-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 9px;
  background: #f6e8ea;
  color: var(--red);
  font-weight: 900;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.proof div {
  padding: 22px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
}

.proof strong {
  display: block;
  font-size: 24px;
}

.proof span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.image-panel {
  min-height: 440px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 31, 61, .08), rgba(7, 31, 61, .64)),
    url("fire-engineering-bg.png") center / cover no-repeat;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.band {
  margin: 0 calc(50% - 50vw) 68px;
  padding: 64px calc(50vw - 50%);
  color: var(--white);
  background: var(--navy);
}

.band h2,
.band .kicker {
  color: var(--white);
}

.band .section-copy {
  color: rgba(255, 255, 255, .72);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted);
  font-weight: 900;
}

.highlight {
  padding: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
}

.highlight h2,
.highlight p {
  color: var(--white);
}

.site-footer {
  padding: 38px 0;
  color: rgba(255, 255, 255, .72);
  background: #06172d;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--white);
}

.line-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  filter: drop-shadow(0 14px 22px rgba(7, 31, 61, .25));
}

.line-float img {
  width: 126px;
  display: block;
}

@media (max-width: 920px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .hero-inner,
  .split,
  .grid,
  .grid.two,
  .proof,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0;
  }

  .hero-panel {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .header-inner,
  .wrap,
  .footer-inner,
  .hero-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .nav a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .line-float img {
    width: 108px;
  }
}
