@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&family=Rajdhani:wght@600;700&display=swap");
:root {
  --black: #07090b;
  --ink: #11161b;
  --steel: #1d252c;
  --silver: #c9d0d4;
  --muted: #8d989f;
  --white: #f7f8f8;
  --orange: #f27421;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --container: min(1280px, calc(100% - 40px));
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: #20262a;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: var(--container);
  margin: auto;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 9999;
  background: #fff;
  padding: 10px 16px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 9, 0.95),
    rgba(5, 7, 9, 0.55),
    transparent
  );
  transition: 0.3s;
}
.site-header.scrolled {
  background: rgba(8, 11, 14, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.header-inner {
  height: 92px;
  max-width: 1440px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  width: 280px;
  margin-right: auto;
}
.brand img {
  width: 100%;
  height: 66px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  display: flex;
  gap: 24px;
  color: #e8ecee;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a {
  position: relative;
  padding: 10px 0;
}
.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transition: 0.3s;
}
.main-nav a:hover:after,
.main-nav a.active:after {
  right: 0;
}
.header-call {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  color: #fff;
  line-height: 1.2;
}
.header-call small {
  display: block;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.header-call strong {
  font-family: Rajdhani, sans-serif;
  font-size: 20px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: white;
  margin: 6px 0;
}
.hero {
  min-height: 100svh;
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 7, 0.92) 0%,
      rgba(3, 5, 7, 0.72) 42%,
      rgba(3, 5, 7, 0.2) 78%
    ),
    url("../images/banner.jpg") center/cover;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  left: -6%;
  bottom: -120px;
  width: 72%;
  height: 210px;
  background: var(--white);
  transform: skewY(-5deg);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: auto;
  padding: 130px 0 180px;
}
.hero-kicker,
.eyebrow {
  font-family: Rajdhani, "Noto Sans TC", sans-serif;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.12;
  margin: 18px 0 26px;
  font-weight: 900;
  max-width: 900px;
}
.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px #cbd1d4;
}
.hero p {
  max-width: 670px;
  color: #d5dadd;
  font-size: 19px;
}
.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.3s;
}
.btn-primary {
  background: var(--orange);
  color: white;
  clip-path: polygon(0 0, 92% 0, 100% 35%, 100% 100%, 0 100%);
}
.btn-primary:hover {
  background: #ff8b3e;
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.section {
  padding: 110px 0;
}
.section-dark {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark:before {
  content: "STEEL";
  position: absolute;
  right: -20px;
  top: -90px;
  font: 900 230px/1 Rajdhani;
  color: rgba(255, 255, 255, 0.025);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.section-head h2,
.page-section h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.2;
  margin: 8px 0;
}
.section-head p {
  max-width: 560px;
  color: #69747b;
}
.section-dark .section-head p {
  color: #aeb7bc;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #2c343a;
}
.service-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  color: white;
  background: #111;
}
.service-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}
.service-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(5, 7, 9, 0.96),
    rgba(5, 7, 9, 0.1) 70%
  );
}
.service-card-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
}
.service-card .num {
  font-family: Rajdhani;
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.service-card h3 {
  font-size: 25px;
  margin: 3px 0;
}
.service-card p {
  color: #c0c7ca;
  font-size: 14px;
  margin: 0 0 14px;
}
.service-card:hover img {
  transform: scale(1.05);
}
.text-link {
  color: var(--orange);
  font-weight: 700;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}
.proof-image {
  position: relative;
}
.proof-image img {
  height: 570px;
  width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}
.proof-badge {
  position: absolute;
  right: -30px;
  bottom: 40px;
  background: var(--orange);
  color: white;
  padding: 24px 30px;
}
.proof-badge strong {
  display: block;
  font: 700 42px Rajdhani;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 35px;
}
.feature {
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}
.feature h3 {
  margin: 0;
}
.feature p {
  margin: 6px 0;
  color: #6d777d;
  font-size: 14px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.case-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  background: #111;
  color: white;
  min-height: 360px;
}
.case-card:nth-child(1),
.case-card:nth-child(6) {
  grid-column: span 8;
}
.case-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.case-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 9, 0.92), transparent 68%);
}
.case-info {
  position: absolute;
  z-index: 2;
  left: 25px;
  bottom: 22px;
  right: 20px;
}
.case-info small {
  color: var(--orange);
}
.case-info h3 {
  margin: 2px 0;
  font-size: 22px;
}
.case-card:hover img {
  transform: scale(1.04);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: white;
  box-shadow: 0 12px 45px rgba(16, 24, 30, 0.09);
  transition: 0.3s;
}
.news-card:hover {
  transform: translateY(-6px);
}
.news-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.news-body {
  padding: 25px;
}
.news-body time {
  color: var(--orange);
  font: 700 14px Rajdhani;
}
.news-body h3 {
  font-size: 21px;
  line-height: 1.4;
  margin: 8px 0;
}
.news-body p {
  color: #6d777d;
  font-size: 14px;
}
.page-hero {
  height: 470px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(4, 7, 9, 0.93), rgba(4, 7, 9, 0.35)),
    url("../images/banner.jpg") center/cover;
  color: #fff;
  padding: 0 0 70px;
}
.page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 5px 0;
  line-height: 1.1;
}
.breadcrumb {
  color: #b8c0c4;
  font-size: 14px;
}
.breadcrumb a {
  color: var(--orange);
}
.page-section {
  padding: 90px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.content-grid img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}
.lead {
  font-size: 20px;
  color: #4e5960;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #dbe0e2;
  margin-top: 35px;
}
.stat {
  background: white;
  padding: 25px;
}
.stat strong {
  display: block;
  color: var(--orange);
  font: 700 38px Rajdhani;
}
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.process-item {
  position: relative;
  padding: 30px 20px;
  background: white;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
}
.process-item b {
  font: 700 30px Rajdhani;
  color: var(--orange);
}
.process-item h3 {
  margin: 8px 0;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
}
.detail-content h2 {
  font-size: 34px;
  margin-top: 50px;
}
.detail-content h3 {
  font-size: 24px;
}
.detail-content p,
.detail-content li {
  color: #566169;
}
.detail-cover {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  margin-bottom: 35px;
}
.sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  background: var(--ink);
  color: #fff;
  padding: 30px;
}
.sidebar h3 {
  margin-top: 0;
}
.sidebar a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.sidebar .side-call {
  background: var(--orange);
  margin: 24px -30px -30px;
  padding: 25px 30px;
}
.faq-list {
  max-width: 900px;
  margin: auto;
}
.faq-item {
  border-bottom: 1px solid #ccd2d5;
}
.faq-question {
  width: 100%;
  border: 0;
  background: none;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font: 700 19px "Noto Sans TC";
  cursor: pointer;
}
.faq-question span:last-child {
  color: var(--orange);
  font-size: 24px;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s;
}
.faq-answer p {
  margin: 0;
  padding: 0 45px 25px 0;
  color: #667178;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}
.contact-panel {
  background: var(--ink);
  color: white;
  padding: 42px;
}
.contact-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item small {
  display: block;
  color: var(--orange);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}
.cta-band {
  background:
    linear-gradient(90deg, rgba(8, 11, 14, 0.96), rgba(8, 11, 14, 0.67)),
    url("../images/banner.jpg") center 70% / cover;
  color: #fff;
  padding: 75px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.cta-inner h2 {
  font-size: 36px;
  line-height: 1.35;
  margin: 5px 0;
}
.site-footer {
  background: #080b0e;
  color: #aeb6ba;
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 55px;
}
.footer-brand img {
  width: 270px;
  margin-bottom: 20px;
}
.footer-grid h3 {
  color: #fff;
}
.footer-grid a {
  display: block;
  margin: 8px 0;
}
.footer-grid a:hover {
  color: var(--orange);
}
.copyright {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
}
.floating-call {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 24px;
  background: #06c755;
  color: white;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.32);
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.floating-call:hover {
  background: #05b94f;
  transform: translateY(-3px);
}
.floating-call img {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1050px) {
  .header-call {
    display: none;
  }
  .main-nav {
    gap: 16px;
  }
  .brand {
    width: 230px;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof-grid,
  .content-grid {
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 780px) {
  :root {
    --container: min(100% - 30px, 1180px);
  }
  .header-inner {
    height: 66px;
    padding: 0 15px;
  }
  .brand {
    width: 215px;
  }
  .brand img {
    height: 54px;
  }
  .nav-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 76px;
    right: -100%;
    width: min(360px, 88%);
    height: calc(100vh - 76px);
    background: #0a0e11;
    display: flex;
    flex-direction: column;
    padding: 35px;
    gap: 8px;
    transition: 0.35s;
  }
  .main-nav.open {
    right: 0;
  }
  .hero-content {
    padding: 120px 0 150px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .section {
    padding: 75px 0;
  }
  .section-head {
    display: block;
  }
  .service-grid,
  .news-grid,
  .content-grid,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 390px;
  }
  .proof-image img {
    height: 420px;
  }
  .proof-badge {
    right: 0;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .case-card,
  .case-card:nth-child(1),
  .case-card:nth-child(6) {
    grid-column: span 12;
    min-height: 330px;
  }
  .page-hero {
    height: 380px;
  }
  .page-section {
    padding: 65px 0;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .cta-inner {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
  .floating-call b {
    display: none;
  }
  .floating-call {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }
  .floating-call img {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  .cta-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero-actions {
    width: 100%;
    max-width: 360px;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 8px;
    white-space: nowrap;
  }
  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div {
    grid-column: 1 !important;
  }
  .page-hero h1 {
    font-size: 38px;
  }
}
/* Balanced responsive headings: avoid one- or two-character orphan lines. */
h1,
h2,
h3 {
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.section-head h2,
.page-section h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.25;
}
.page-hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.15;
  max-width: 1120px;
  word-break: normal;
}
.contact-panel h2 {
  font-size: clamp(34px, 3.2vw, 44px);
}
.detail-content h2 {
  font-size: 34px;
  line-height: 1.35;
}
.detail-layout > * {
  min-width: 0;
}
.detail-content h2,
.detail-content h3 {
  word-break: normal;
}
@media (max-width: 780px) {
  .section-head h2,
  .page-section h2 {
    font-size: clamp(30px, 8.5vw, 40px);
  }
  .page-hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }
  .contact-panel h2 {
    font-size: clamp(30px, 8.5vw, 38px);
  }
}
@media (max-width: 480px) {
  .page-hero h1 {
    font-size: clamp(29px, 8.2vw, 34px);
  }
  .breadcrumb {
    overflow-wrap: anywhere;
  }
}
/* Full-width dark diagonal transition from the hero into the following section. */
.hero:after {
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  background: var(--ink);
  transform: none;
  clip-path: polygon(0 78%, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 780px) {
  .hero:after {
    height: 48px;
    clip-path: polygon(0 72%, 100% 18%, 100% 100%, 0 100%);
  }
}
/* Keep the decorative STEEL word fully visible inside dark sections. */
.section-dark:before {
  top: 20px;
  right: -12px;
  font-size: 190px;
  line-height: 1;
  opacity: 1;
}
@media (max-width: 780px) {
  .section-dark:before {
    top: 28px;
    right: -8px;
    font-size: 110px;
  }
}

/* Homepage case gallery: dedicated non-repeating image with subtle parallax. */
.home-case-section {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(12, 17, 21, 0.82), rgba(12, 17, 21, 0.9)),
    url("../images/case-section-bg.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  background-attachment: scroll, fixed;
}
.home-case-section:before {
  display: none;
}
@media (max-width: 780px), (prefers-reduced-motion: reduce) {
  .home-case-section {
    background-attachment: scroll, scroll;
    background-position: center, center top;
  }
}

/* Hero outline accent: keep the industrial character without doubled, crowded glyph edges. */
.hero h1 span {
  display: inline-block;
  white-space: nowrap;
  color: var(--orange);
  -webkit-text-stroke: 0 transparent;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: none;
}
@supports not (-webkit-text-stroke: 0.75px white) {
  .hero h1 span {
    color: #c7d0d5;
  }
}
@media (max-width: 780px) {
  .hero h1 span {
    white-space: normal;
    -webkit-text-stroke: 0 transparent;
    letter-spacing: 0;
  }
}
