:root {
  --ink: #1e242b;
  --slate: #2b323a;
  --body: #3d4650;
  --muted: #5a6470;
  --border: #dde1e6;
  --border-strong: #b9c0c8;
  --surface: #f3f4f6;
  --white: #ffffff;
  --accent: #dd3845;
  --cta: #b32a37;
  --cta-hover: #8e1f2a;
  --accent-soft: #f4a3aa;
  --accent-tint: #fbedee;
  --dark-text: #e4e7eb;
  --dark-muted: #c5cbd3;
  --dark-subtle: #d5dae0;
  --max-w: 1320px;
  --px: 40px;
  --font-sans: 'Noto Sans', 'Noto Sans TC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cta);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--cta-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

section {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.container-narrow {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(30, 36, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--cta);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-sw {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.lang-btn {
  padding: 6px 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.lang-btn.active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.lang-btn:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: var(--white);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--white);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
}

.btn-white:hover {
  background: var(--surface);
  color: var(--ink);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 20px var(--px) 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer nav a {
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

/* Section Typography */
.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cta);
}

.eyebrow-light {
  color: var(--accent-soft);
}

.h2-section {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 700;
}

.lead-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}

/* Hero */
.hero {
  position: relative;
  min-height: 680px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 36, 43, 0.94) 0%, rgba(30, 36, 43, 0.82) 48%, rgba(30, 36, 43, 0.3) 100%);
}

.sq-deco {
  position: absolute;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 112px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-slogan {
  margin: 0;
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-soft);
}

.hero-title {
  margin: 0;
  max-width: 840px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-desc {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--dark-text);
}

.hero-stats-bar {
  position: relative;
  background: rgba(30, 36, 43, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stats-grid {
  padding-top: 28px;
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.stat-label {
  font-size: 14px;
  color: var(--dark-muted);
}

/* Subpage Hero */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 64px;
}

.page-hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark-muted);
  margin-bottom: 4px;
}

.breadcrumb a {
  color: var(--dark-subtle);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Standard Sections */
.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-pad-sm {
  padding-top: 72px;
  padding-bottom: 72px;
}

.bg-white {
  background: var(--white);
}

.bg-surface {
  background: var(--surface);
}

.bg-dark {
  background: var(--ink);
  color: var(--white);
}

.bg-slate {
  background: var(--slate);
  color: var(--white);
}

/* Split layout */
.split-row {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

/* Service Explorer Tabs */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.service-tab:hover {
  border-color: var(--slate);
  background: var(--surface);
}

.service-tab[aria-selected='true'] {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--white);
}

.service-panel {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.service-panel-top {
  display: flex;
  flex-wrap: wrap;
}

.service-media {
  flex: 1 1 400px;
  min-width: 0;
  position: relative;
  min-height: 350px;
  background: var(--slate);
  overflow: hidden;
}

.service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  flex: 999 1 520px;
  min-width: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-groups-grid {
  border-top: 1px solid var(--border);
  padding: 36px 40px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
}

.chip {
  font-size: 14px;
  padding: 7px 12px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink);
}

.red-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.red-bullet-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.red-bullet-list.on-dark li {
  color: var(--dark-text);
  font-size: 17px;
}

.red-sq {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--accent);
}

.red-sq-lg {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--accent);
}

/* Industry Cards */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.industry-card {
  position: relative;
  height: 156px;
  background: var(--ink);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.industry-card:hover img {
  transform: scale(1.05);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 36, 43, 0.05) 35%, rgba(30, 36, 43, 0.86) 100%);
}

.industry-card-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.industry-card-title {
  position: relative;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* Qualification Cards */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.qual-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--white);
}

/* Team Cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef0f3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.team-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}

@media (max-width: 1120px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card-body {
  flex: 1 1 auto;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  flex: none;
  font-size: 26px;
  font-weight: 400;
  color: var(--cta);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  max-width: 820px;
}

/* Insights Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.insight-card:hover {
  box-shadow: 0 10px 28px rgba(30, 36, 43, 0.08);
  transform: translateY(-2px);
  color: var(--ink);
}

.tag-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta);
  background: var(--accent-tint);
  padding: 4px 10px;
}

/* GEO Comparison / Reference Table */
.geo-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--white);
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.geo-table th {
  background: var(--slate);
  color: var(--white);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.geo-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}

.geo-table tbody tr:nth-child(even) {
  background: var(--surface);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 36, 43, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
}

.modal-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--surface);
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.form-input,
.form-select,
.form-textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  width: 100%;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-alert {
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  font-size: 15px;
}

.form-alert-success {
  border-left-color: #16794c;
  background: #edf9f2;
  color: #114d31;
}

.form-alert-error {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  color: var(--cta-hover);
}

/* Client Logos Wall */
.client-logo-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 20px 24px;
}

.client-logo-panel-lg {
  padding: 32px 36px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--dark-subtle);
}

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

.footer-col {
  flex: 1 1 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.footer-col h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col a {
  color: var(--dark-subtle);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-links,
  .hdr-cta {
    display: none !important;
  }

  .menu-btn {
    display: inline-flex !important;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --px: 20px;
  }

  .lang-sw-desktop {
    display: none !important;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 40px;
  }

  .section-pad {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .sq-deco {
    display: none !important;
  }

  .service-body,
  .service-groups-grid {
    padding: 24px 20px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .stat-value {
    font-size: 28px;
  }

  .big-num {
    font-size: 56px !important;
  }
}
