:root {
  --blue: #0f4ecb;
  --blue-dark: #0b2f91;
  --text: #253047;
  --muted: #7b8496;
  --line: #dfe5f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --shadow: 0 10px 32px rgba(29, 54, 111, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.pattern {
  background-image:
    radial-gradient(circle at 0 0, rgba(24, 66, 175, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 24px 12px, rgba(24, 66, 175, 0.03) 1px, transparent 1px);
  background-size: 48px 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
  background-color: rgba(255, 255, 255, 0.9);
}

.site-header.scrolled {
  /*background: rgba(11, 23, 52, 0.88);*/
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 12px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  letter-spacing: 0.08em;
}
.logo-en { font-size: 1.1rem; font-weight: 700; }
.logo-zh { font-size: 0.72rem; opacity: 0.9; margin-top: 4px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav a {
  /*color: #fff;*/
  color: #043c9a;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-nav a span {
  font-weight: 400;
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 930px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 61, 173, 0.58), rgba(255, 255, 255, 0.12)),
    url('../images/banner.jpg') center/cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 22, 63, 0.35), rgba(6, 22, 63, 0.08) 35%, rgba(6, 22, 63, 0.2));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}
.eyebrow {
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  margin-bottom: 18px;
  opacity: 0.9;
}
.hero h1 {
  margin: 0;
  line-height: 0.95;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
}
.hero h1 span {
  display: block;
  font-style: italic;
  font-weight: 500;
  margin-top: 18px;
}
.hero-subtitle {
  margin: 26px 0 34px;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
  font-size: 1rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
}
.btn {
  min-width: 136px;
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.55);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}
.btn-secondary {
  background: transparent;
}

.section { padding: 90px 0 110px; }
.section-muted { background: var(--bg-soft); }

.section-heading {
  margin-bottom: 46px;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.24em;
  font-weight: 700;
}
.label::before {
  content: "";
  width: 58px;
  height: 1px;
  background: #9aaed8;
}
.section-heading h2 {
  margin: 16px 0 8px;
  font-size: clamp(2.2rem, 3.5vw, 3.25rem);
  line-height: 1.12;
  font-family: "Noto Serif TC", serif;
}
.section-heading .sub {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}
.left-line h2 {
  border-left: 4px solid var(--blue);
  padding-left: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.about-copy p,
.about-en p,
.heading-note,
.card-body p,
.contact-card p{
  color: #606a7f;
  line-height: 2;
  font-size: 0.98rem;
}
.footer-grid p  {
  color: #FFF;
  line-height: 2;
  font-size: 0.98rem;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 32px;
}
.about-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-image {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(14, 78, 203, 0.12)),
    url('../assets/images/hero-reference.jpg') center 58%/cover no-repeat;
  margin-bottom: 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.stats div strong {
  display: block;
  color: var(--blue-dark);
  font-size: 2rem;
  font-family: "Noto Serif TC", serif;
}
.stats div span {
  color: var(--muted);
  font-size: 0.9rem;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.heading-note {
  max-width: 520px;
  margin: 0;
}
.en { font-family: "Noto Serif TC", serif; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.brand-card {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #edf1f7;
}
.card-image {
  aspect-ratio: 1.36 / 1;
  background-size: cover;
  background-position: center;
}
.card-image.saurer { background-image: linear-gradient(rgba(15,78,203,.08), rgba(15,78,203,.08)), url('../images/saurerpic.jpg'); background-position: left center; }
.card-image.ssm { background-image: linear-gradient(rgba(15,78,203,.08), rgba(15,78,203,.08)), url('../images/ssm_pri.jpg'); background-position: center center; }
.card-image.shakespeare {
  background:
    linear-gradient(135deg, rgba(14, 78, 203, 0.1), rgba(0,0,0,0.18)),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.3), transparent 28%),
    url('../images/shakespeare_pri.jpg') right center/cover no-repeat;
}
.card-body {
  padding: 24px 22px 26px;
}
.card-body h3 {
  margin: 0 0 8px;
  color: #d86039;
  font-size: 2rem;
  letter-spacing: 0.03em;
}
.brand-card:nth-child(2) h3 { color: #275e9e; }
.brand-card:nth-child(3) h3 { color: #2f3645; }
.card-body .seo-title {display: none;}
.card-body h4 {
  margin: 16px 0 14px;
  color: #3f6ea7;
  font-size: 1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags span,
.footer-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: #3d5f98;
  background: #f2f6ff;
  border: 1px solid #d8e4ff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 34px;
  align-items: start;
}
.map-placeholder {
  min-height: 420px;
  background: #fff;
  border: 1px solid #e9eef8;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.map-inner {
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border: 1px dashed #c9d5ee;
  display: grid;
  place-items: center;
  color: #9da7bb;
  letter-spacing: 0.3em;
}
.map-inner iframe {
  width: 100%;
  height: 100%;
}
.contact-card {
  background: #fff;
  border-left: 4px solid var(--blue);
  padding: 20px 0 0 24px;
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-family: "Noto Serif TC", serif;
}
.company-en { margin: 0 0 18px; color: #8c94a6; }
.contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-card li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #eef2f8;
}
.icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f6ff;
  color: var(--blue);
}
.contact-card strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #79839a;
  margin-bottom: 6px;
}
.contact-link {
  display: inline-block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef2f8;
  color: #8d96a8;
}

.site-footer {
  background: linear-gradient(90deg, #003cb6, #0c47bf);
  color: rgba(255,255,255,0.88);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
}
.footer-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.footer-subtitle {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  opacity: 0.8;
  margin-bottom: 16px;
}
.footer-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-nav a { opacity: 0.9; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags span {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.85);
}
.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}

/* ── Selected Applications ── */
.applications { padding-bottom: 0; }
.applications .container { margin-bottom: 40px; }

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.app-text-cell {
  display: flex;
  align-items: center;
  padding: 64px 56px;
  background: #fff;
}
.app-text-inner { max-width: 460px; }
.app-title {
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.2;
}
.app-model {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
}
.app-specs {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}
.app-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--text);
}
.app-specs li::before {
  content: "▪";
  color: var(--blue);
  font-size: 0.65rem;
  flex-shrink: 0;
}
.app-desc {
  line-height: 2;
  color: #606a7f;
  font-size: 0.98rem;
  margin: 0 0 34px;
}
.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 46px;
  border: 1px solid var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.btn-app:hover {
  background: var(--text);
  color: #fff;
}
.app-image-cell {
  background-size: cover;
  background-position: center;
  min-height: 380px;
}
.app-image-01 {
  background-image: linear-gradient(rgba(15,78,203,.06), rgba(15,78,203,.06)), url('../images/app_1.jpg');
  background-position: center;
}
.app-image-02 {
  background-image: linear-gradient(rgba(15,78,203,.06), rgba(15,78,203,.06)), url('../images/app_2.jpg');
  background-position: center;
}

@media (max-width: 1024px) {
  .hero { min-height: 760px; }
  .about-grid,
  .contact-grid,
  .footer-grid,
  .split-heading,
  .cards,
  .app-row {
    grid-template-columns: 1fr;
  }
  .app-row { min-height: unset; }
  .app-row:first-of-type .app-image-cell { order: -1; }
  .app-text-cell { padding: 48px 40px; }
  .split-heading { align-items: start; }
  .heading-note { max-width: none; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav-toggle { display: block; color: black; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    /*background: rgba(9, 20, 48, 0.95);*/
    background: #FFF;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { align-items: flex-start; padding: 10px 8px; }
  .hero {
    min-height: 660px;
    background-position: center;
  }
  .hero-content { padding-top: 80px; }
  .hero h1 { line-height: 1.04; }
  .hero-actions { flex-wrap: wrap; }
  .section { padding: 72px 0 86px; }
  .stats { grid-template-columns: 1fr; }
  .map-placeholder { min-height: 300px; }
}


#applications, #about {position: relative;}
#applications:before, #about:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(5, 59, 153, 0.04) 40px, rgba(5, 59, 153, 0.04) 41px), repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 41px);
    z-index: 0;
}
#applications img, #about img {
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 1024px) {
  .phone-reverse {
    flex-direction: column-reverse;
    display: flex;
  }

}