:root {
  --navy: #071726;
  --navy-2: #0d2a42;
  --steel: #5d7183;
  --cyan: #18b7d6;
  --cyan-dark: #087d9b;
  --ice: #e9f7fb;
  --white: #fff;
  --off-white: #f4f7f9;
  --line: #d7e1e7;
  --text: #182733;
  --muted: #586a77;
  --shadow: 0 22px 60px rgba(7, 23, 38, .12);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--off-white);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; color: #fff; background: var(--navy);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(7,23,38,.08);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  height: 76px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; line-height: 0; }
.brand-logo img { width: 142px; height: 54px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a {
  padding: 10px 13px; border-radius: 10px;
  color: #334957; font-size: 15px; font-weight: 700;
}
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--cyan-dark); background: var(--ice); }
.nav-dropdown { position: relative; }
.nav-dropdown summary {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 10px;
  color: #334957; font-size: 15px; font-weight: 700;
  cursor: pointer; list-style: none;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover,
.nav-dropdown[open] summary,
.nav-dropdown.is-current summary { color: var(--cyan-dark); background: var(--ice); }
.nav-dropdown summary span { font-size: 14px; transition: transform .18s ease; }
.nav-dropdown[open] summary span { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 10;
  width: max-content; min-width: 205px; padding: 8px;
  background: #fff; border: 1px solid rgba(7,23,38,.1); border-radius: 13px;
  box-shadow: 0 18px 42px rgba(7,23,38,.18);
}
.desktop-nav .nav-dropdown-menu a { display: block; padding: 11px 13px; }
.nav-cta { color: #fff !important; background: var(--navy) !important; }
.nav-cta:hover { background: var(--cyan-dark) !important; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  color: var(--navy); background: var(--ice); font-size: 22px; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 120;
  width: min(360px, 88vw); padding: 22px;
  background: var(--navy); color: #fff;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -20px 0 50px rgba(0,0,0,.28);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-menu button { border: 0; color: #fff; background: transparent; font-size: 34px; cursor: pointer; }
.mobile-menu nav { display: grid; gap: 5px; padding-top: 22px; }
.mobile-menu a { padding: 13px 14px; border-radius: 10px; color: #dbe7ed; font-weight: 700; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: #fff; background: rgba(24,183,214,.17); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 110;
  opacity: 0; pointer-events: none; background: rgba(2,13,22,.6); transition: opacity .25s ease;
}
.menu-overlay.show { opacity: 1; pointer-events: auto; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 16px; color: var(--cyan-dark);
  font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cyan); }
.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 68px; color: #fff;
  background:
    radial-gradient(circle at 76% 24%, rgba(24,183,214,.2), transparent 32%),
    linear-gradient(125deg, #061522 0%, #0a253a 68%, #0f344b 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 56%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 58px;
}
.hero h1 {
  max-width: 720px; margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 68px); line-height: 1.12; letter-spacing: -.035em;
}
.hero h1 span { color: #64ddf2; }
.hero-copy { max-width: 620px; margin: 0; color: #cbdbe4; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.btn {
  min-height: 50px; padding: 12px 21px; border: 1px solid transparent; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 900; transition: .2s ease;
}
.btn-primary { color: #062033; background: #6de1f4; }
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.13); }
.btn-dark { color: #fff; background: var(--navy); }
.btn-dark:hover { background: var(--cyan-dark); transform: translateY(-2px); }
.hero-media { position: relative; }
.hero-media::before {
  content: "SINCE 1986"; position: absolute; z-index: 2; left: -24px; bottom: 24px;
  padding: 10px 16px; border-radius: 10px; color: #072034; background: #fff;
  font-size: 13px; font-weight: 900; letter-spacing: .12em; box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 28px;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 28px 70px rgba(0,0,0,.34);
}
.hero-stats {
  position: relative; z-index: 2; margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.06);
}
.stat { padding: 18px 22px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.13); }
.stat strong { display: block; color: #fff; font-size: 18px; }
.stat span { color: #9fb6c4; font-size: 13px; }

.section { padding: 92px 0; }
.section.white { background: #fff; }
.section.dark { color: #fff; background: var(--navy); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-head h2 { max-width: 680px; margin: 0; color: var(--navy); font-size: clamp(31px, 4vw, 45px); line-height: 1.25; letter-spacing: -.025em; }
.section.dark .section-head h2 { color: #fff; }
.section-intro { max-width: 570px; margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.section.dark .section-intro { color: #b9cad4; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative; overflow: hidden; min-height: 330px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: #a9dce7; box-shadow: var(--shadow); }
.service-icon {
  width: 64px; height: 64px; margin-bottom: 28px; border-radius: 17px;
  display: grid; place-items: center; color: var(--cyan-dark); background: var(--ice);
  font-size: 26px; font-weight: 900;
}
.service-card h3 { margin: 0 0 12px; color: var(--navy); font-size: 23px; line-height: 1.35; }
.service-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--cyan-dark); font-weight: 900; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: center; }
.about-image {
  position: relative; padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.about-image img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.about-image::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -18px; bottom: -18px;
  border-right: 5px solid var(--cyan); border-bottom: 5px solid var(--cyan); border-radius: 0 0 22px 0;
}
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #354a58; }
.check-list li::before {
  content: "✓"; flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cyan-dark); background: var(--ice); font-size: 13px; font-weight: 900;
}

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.case-card { overflow: hidden; border-radius: 18px; color: var(--navy); background: #fff; box-shadow: 0 14px 36px rgba(7,23,38,.08); }
.case-card img { width: 100%; aspect-ratio: 1.18; object-fit: cover; transition: transform .35s ease; }
.case-card:hover img { transform: scale(1.035); }
.case-body { padding: 20px; }
.case-tag { color: var(--cyan-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.case-card h3 { margin: 5px 0 5px; font-size: 19px; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; counter-reset: step; }
.process-item {
  counter-increment: step; min-height: 170px; padding: 25px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.055);
}
.process-item::before { content: "0" counter(step); color: #68dff2; font-size: 13px; font-weight: 900; letter-spacing: .13em; }
.process-item h3 { margin: 16px 0 6px; font-size: 19px; }
.process-item p { margin: 0; color: #adbfca; font-size: 14px; }

.cta-band {
  padding: 47px; border-radius: 25px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: #fff; background: linear-gradient(115deg, var(--cyan-dark), #0d3853);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 5px; font-size: clamp(27px, 3vw, 38px); }
.cta-band p { margin: 0; color: #d6f0f5; }

.page-hero {
  padding: 74px 0 68px; color: #fff;
  background:
    linear-gradient(115deg, rgba(6,21,34,.97), rgba(10,50,74,.91)),
    url("images/cover-banner.webp") center/cover;
}
.page-hero h1 { max-width: 820px; margin: 7px 0 10px; font-size: clamp(38px, 5vw, 58px); line-height: 1.18; }
.page-hero p { max-width: 700px; margin: 0; color: #c4d8e2; font-size: 18px; }
.breadcrumbs { color: #8fdced; font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.detail-list { display: grid; gap: 24px; }
.detail-card {
  display: grid; grid-template-columns: .78fr 1.22fr; gap: 42px; align-items: center;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.detail-card:nth-child(even) { grid-template-columns: 1.22fr .78fr; }
.detail-card:nth-child(even) .detail-media { order: 2; }
.detail-media img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 16px; background: var(--ice); }
.detail-copy h2 { margin: 0 0 10px; color: var(--navy); font-size: 29px; line-height: 1.25; }
.detail-copy p { margin: 0; color: var(--muted); }
.detail-copy ul { margin: 18px 0 0; padding-left: 20px; color: #344a58; }
.detail-copy li + li { margin-top: 7px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.portfolio-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.portfolio-card img { width: 100%; aspect-ratio: 1.45; object-fit: cover; }
.portfolio-copy { padding: 25px; }
.portfolio-copy h2 { margin: 5px 0 5px; color: var(--navy); font-size: 23px; }
.portfolio-copy p { margin: 0; color: var(--muted); }

.article-wrap { max-width: 900px; }
.article {
  padding: clamp(25px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 18px 50px rgba(7,23,38,.07);
}
.article p { margin: 0 0 20px; color: #425765; font-size: 17px; }
.article h2 { margin: 43px 0 14px; color: var(--navy); font-size: 27px; line-height: 1.35; }
.article h2:first-child { margin-top: 0; }
.article strong { color: var(--navy); }
.compare-wrap { overflow-x: auto; margin: 25px 0 36px; border: 1px solid var(--line); border-radius: 15px; }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th { color: #fff; background: var(--navy); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { width: 18%; color: var(--navy); font-weight: 900; }
.compare-table .highlight { background: #eefafd; }

.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; }
.contact-panel { padding: 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-panel.dark { color: #fff; background: var(--navy); border-color: var(--navy); }
.contact-panel h2 { margin: 0 0 24px; font-size: 28px; }
.contact-list { display: grid; gap: 18px; margin: 0; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
.contact-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan-dark); background: var(--ice); }
.contact-item dt { color: #a8bdca; font-size: 13px; }
.contact-item dd { margin: 2px 0 0; font-weight: 800; }
.contact-actions { display: grid; gap: 12px; margin-top: 28px; }
.map-frame { width: 100%; min-height: 420px; border: 0; border-radius: 16px; }

.site-footer { padding: 58px 0 26px; color: #aabcc8; background: #05121e; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 44px; }
.footer-brand { color: #fff; font-size: 21px; font-weight: 900; }
.footer-logo { width: 82px; height: 82px; margin-bottom: 18px; object-fit: contain; }
.footer-copy { max-width: 460px; margin: 13px 0 0; color: #8fa6b5; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 5px; color: #fff; }
.footer-links a:hover { color: #68dff2; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

.floating-contact {
  position: fixed; z-index: 90; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.floating-contact a {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 7px 22px rgba(0,0,0,.22); transition: transform .2s ease;
}
.floating-contact a:hover { transform: translateY(-3px) scale(1.03); }
.floating-contact img { width: 100%; height: 100%; object-fit: cover; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: .01ms !important; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-media { max-width: 680px; }
  .hero-stats { margin-top: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-card, .detail-card:nth-child(even) { grid-template-columns: 1fr; }
  .detail-card:nth-child(even) .detail-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-wrap, .container { width: min(100% - 28px, var(--max)); }
  .nav-wrap { height: 68px; }
  .brand-logo img { width: 50px; height: 50px; }
  .hero { padding: 48px 0 46px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-media::before { left: 12px; bottom: 12px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 20px; }
  .case-grid, .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 31px 24px; display: block; }
  .cta-band .btn { width: 100%; margin-top: 20px; }
  .page-hero { padding: 55px 0; }
  .detail-card { padding: 18px; gap: 25px; }
  .contact-panel { padding: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .floating-contact { right: 12px; bottom: 12px; }
  .floating-contact a { width: 48px; height: 48px; }
}

/* Compact, text-led home introduction. */
.hero { padding: 48px 0 36px; }
.hero-grid { display: block; }
.hero h1 { max-width: 1050px; font-size: clamp(32px, 4vw, 50px); line-height: 1.25; }
.hero-copy { max-width: 850px; }
.hero-actions { margin-top: 24px; }
.hero-stats { margin-top: 30px; }
@media (max-width: 640px) {
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { margin-top: 24px; }
  .stat { padding: 12px 18px; }
}
