/* ============================================================
   Golden Bridge Translation — Main Stylesheet
   Professional services / law-firm aesthetic
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --color-primary:    #1a5276;
  --color-secondary:  #2980b9;
  --color-dark:       #1a1a2e;
  --color-light:      #f8f9fa;
  --color-white:      #ffffff;
  --color-text:       #333333;
  --color-text-light: #6c757d;
  --color-border:     #dee2e6;
  --color-accent:     #d4af37;
  --color-success:    #28a745;
  --color-error:      #dc3545;

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3rem;

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --leading-tight:  1.25;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 50%;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl:  0 12px 40px rgba(0,0,0,0.15);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --header-height: 80px;
  --container-max: 1200px;
  --container-narrow: 800px;
}

/* ----- CSS Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl);  }
h4 { font-size: var(--fs-lg);  }
h5 { font-size: var(--fs-md);  }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-loose);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: var(--space-sm);
  line-height: var(--leading-normal);
}

.page-content li::marker {
  color: var(--color-secondary);
}

blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--color-light);
  font-style: italic;
  color: var(--color-text-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.section-alt {
  background-color: var(--color-light);
}

/* Service categories section */
.service-categories {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
}

/* Featured services section */
.featured-services {
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
}

/* Page content section */
.service-content {
  background: #ffffff;
}

/* Related services */
.related-services {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base),
              box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo span {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.site-header.scrolled .site-logo span {
  color: var(--color-primary);
}

/* ----- Header Actions (CTA + lang switch) ----- */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-cta-call {
  font-size: var(--fs-sm) !important;
  padding: 8px 14px !important;
}

.header-cta-quote {
  font-size: var(--fs-sm) !important;
  padding: 8px 16px !important;
}

/* ----- Desktop Navigation ----- */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: var(--space-xs) 10px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast),
              background var(--transition-fast);
  white-space: nowrap;
}

.site-header.scrolled .main-nav a {
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-secondary);
  background: rgba(41, 128, 185, 0.08);
}

/* Dropdown */
.nav-item-has-children,
.has-dropdown {
  position: relative;
}

.nav-item-has-children > a::after,
.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}

.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  z-index: 100;
  flex-direction: column;
}

.dropdown-menu a {
  color: var(--color-text) !important;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-sm);
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--color-light);
  color: var(--color-secondary) !important;
}

/* Desktop hover */
@media (hover: hover) {
  .nav-item-has-children:hover > .dropdown-menu,
  .has-dropdown:hover > .dropdown-menu {
    display: block !important;
  }
  .nav-item-has-children:hover > a::after,
  .has-dropdown:hover > a::after {
    transform: rotate(-135deg);
  }
}

/* ----- Hamburger ----- */
.menu-toggle,
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1100;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-toggle:hover,
.mobile-menu-toggle:hover {
  background: rgba(0,0,0,0.05);
}

.menu-toggle span,
.mobile-menu-toggle span,
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-base);
}

.menu-toggle.active span:nth-child(1),
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2),
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3),
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----- Mobile Navigation Overlay ----- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: 1050;
  padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-lg);
  transition: right var(--transition-base);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  margin-bottom: var(--space-xl);
}

.mobile-nav-item {
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.mobile-nav-item > a {
  display: block;
  padding: 14px 0;
  color: var(--color-text);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}

.mobile-nav-item > a:hover {
  color: var(--color-secondary);
}

.mobile-nav-item.has-dropdown > a {
  padding-right: 40px;
}

.mobile-dropdown-toggle {
  position: absolute;
  top: 8px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

.mobile-dropdown-toggle:hover {
  background: var(--color-light);
}

.mobile-dropdown-toggle.active {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.mobile-dropdown {
  display: none;
  padding: 0 0 var(--space-sm) var(--space-md);
  border-left: 2px solid var(--color-secondary);
  margin-left: var(--space-sm);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown li a {
  display: block;
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.mobile-dropdown li a:hover {
  color: var(--color-secondary);
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  backdrop-filter: blur(2px);
}

.mobile-overlay.open {
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 82, 118, 0.85) 100%
  );
}

.hero-content,
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--color-white);
}

.hero-content h1,
.hero-inner h1,
.hero-title {
  color: var(--color-white) !important;
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
}

.hero-content p,
.hero-inner p,
.hero-subtitle,
.hero-tagline,
.hero-tagline-zh {
  font-size: var(--fs-md);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 82, 118, 0.85) 100%
  );
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

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

.btn-sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-base);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.card-body p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

/* Service Card */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  box-shadow: 0 2px 12px rgba(26,82,118,0.06);
  border: 1px solid rgba(26,82,118,0.08);
  border-top: 3px solid var(--color-secondary);
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(41,128,185,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px rgba(26,82,118,0.15);
  border-top-color: var(--color-primary);
}

.service-card .icon,
.service-card .service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(41,128,185,0.12) 0%, rgba(26,82,118,0.08) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-secondary);
  font-size: var(--fs-xl);
  position: relative;
  z-index: 1;
}

.service-card h3,
.service-card .service-card-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.service-card .service-card-title a {
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.service-card .service-card-title a:hover {
  color: var(--color-secondary);
}

.service-card p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  position: relative;
  z-index: 1;
}

.service-card .service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-secondary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.service-card .service-card-link:hover {
  color: var(--color-primary);
  gap: 8px;
}

.service-card .btn {
  margin-top: var(--space-md);
}

/* City Card */
.city-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  color: var(--color-text);
}

.city-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.city-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* Internal Link Card (related services) */
.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.link-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.link-card .link-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 128, 185, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-secondary);
}

.link-card .link-card-text h4 {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}

.link-card .link-card-text p {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================================
   CATEGORY CARDS (Our Services grid on homepage)
   ============================================================ */
.category-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-left: 4px solid var(--color-secondary);
  box-shadow: 0 2px 16px rgba(26,82,118,0.06);
  transition: all var(--transition-base);
  position: relative;
}

.category-card:nth-child(1) { border-left-color: #2980b9; }
.category-card:nth-child(2) { border-left-color: #d4af37; }
.category-card:nth-child(3) { border-left-color: #27ae60; }
.category-card:nth-child(4) { border-left-color: #8e44ad; }

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,82,118,0.12);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.category-card:nth-child(1) .category-icon { background: linear-gradient(135deg, #2980b9, #3498db); }
.category-card:nth-child(2) .category-icon { background: linear-gradient(135deg, #d4af37, #f0c040); }
.category-card:nth-child(3) .category-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.category-card:nth-child(4) .category-icon { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.category-title {
  font-size: var(--fs-lg);
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.category-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-secondary);
  transition: all var(--transition-fast);
}

.category-link:hover {
  gap: 10px;
  color: var(--color-primary);
}

/* ============================================================
   PAGE HERO (service pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
}

.page-hero-inner {
  position: relative;
}

.page-hero-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero-title {
  color: var(--color-white) !important;
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.page-hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
}

.page-hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-base);
  max-width: 600px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.content-sidebar {
  order: 2;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 2px 12px rgba(26,82,118,0.06);
  border: 1px solid rgba(26,82,118,0.08);
  margin-bottom: var(--space-lg);
}

.sidebar-contact {
  border-top: 3px solid var(--color-secondary);
}

.sidebar-wechat {
  border-top: 3px solid #07c160;
  text-align: center;
}

.sidebar-card-title {
  font-size: var(--fs-md);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

.sidebar-card-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.btn-block {
  display: flex;
  width: 100%;
  margin-bottom: var(--space-sm);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}

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

.wechat-qr img {
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-sm);
  max-width: 180px;
}

.wechat-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 60%, #2980b9 100%);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.cta-inner {
  text-align: center;
}

.cta-title {
  color: var(--color-white) !important;
  margin-bottom: var(--space-sm);
}

.cta-subtitle {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
  font-weight: var(--fw-bold);
}

.btn-light:hover {
  background: transparent;
  color: var(--color-white);
}

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

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

/* ============================================================
   SECTION HEADER (used in homepage sections)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   BREADCRUMB NAV
   ============================================================ */
.breadcrumb-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
  margin-top: var(--header-height);
}

/* ============================================================
   GRIDS
   ============================================================ */
.service-grid,
.services-grid,
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.card-grid,
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.aggregation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  padding: var(--space-2xl) 0;
  font-size: var(--fs-md);
  line-height: var(--leading-loose);
}

.page-content h2 {
  margin-top: var(--space-2xl);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.page-content h3 {
  margin-top: var(--space-xl);
}

.page-content img {
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
}

.page-content a {
  color: var(--color-secondary);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--color-primary);
}

/* Sidebar layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.sidebar {
  order: 2;
}

.sidebar-widget {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-widget h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-secondary);
}

/* ============================================================
   TABLES (pricing, comparison)
   ============================================================ */
.page-content table,
.styled-table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
}

.page-content table thead,
.styled-table thead {
  background: var(--color-primary);
  color: var(--color-white);
}

.page-content table th,
.styled-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: var(--fw-semibold);
  font-family: var(--font-body);
}

.page-content table td,
.styled-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-content table tbody tr:nth-child(even),
.styled-table tbody tr:nth-child(even) {
  background: var(--color-light);
}

.page-content table tbody tr:hover,
.styled-table tbody tr:hover {
  background: rgba(41, 128, 185, 0.05);
}

/* Responsive table wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-lg) 0;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #1a5276 100%);
  color: var(--color-white);
}

.trust-badges .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
}

.trust-badges-inner,
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
}

.trust-badge,
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.trust-badge .badge-icon,
.badge-item .badge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--fs-xl);
  backdrop-filter: blur(4px);
}

.trust-badge .badge-label,
.badge-item .badge-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   RELATED SERVICES
   ============================================================ */
.related-services {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
}

.related-services h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.footer-col p {
  font-size: var(--fs-sm);
  line-height: var(--leading-normal);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--fs-xs);
}

/* ============================================================
   FLOATING ACTION BUTTON
   ============================================================ */
.fab-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 900;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.fab-btn:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

.fab-menu {
  position: absolute;
  bottom: 68px;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-end;
}

.fab-menu.open {
  display: flex;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.fab-menu-item:hover {
  background: var(--color-light);
  color: var(--color-secondary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: calc(var(--space-lg) + 68px);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  z-index: 899;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-secondary);
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: var(--fs-xs);
}

.lang-toggle button {
  padding: 6px 12px;
  font-weight: var(--fw-medium);
  background: transparent;
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle button.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Default: show Chinese, hide English */
.lang-zh, .label-zh { display: block; }
.lang-en, .label-en { display: none; }

/* Inline labels (nav, buttons) */
a .label-zh, a .label-en,
button .label-zh, button .label-en,
.nav-link .label-zh, .nav-link .label-en,
.dropdown-link .label-zh, .dropdown-link .label-en {
  display: inline;
}
a .label-en, button .label-en,
.nav-link .label-en, .dropdown-link .label-en {
  display: none;
}

/* When English mode is active */
body.show-en .lang-zh, body.show-en .label-zh { display: none !important; }
body.show-en .lang-en, body.show-en .label-en { display: block !important; }
body.show-en a .label-en, body.show-en button .label-en,
body.show-en .nav-link .label-en, body.show-en .dropdown-link .label-en { display: inline !important; }
body.show-en a .label-zh, body.show-en button .label-zh,
body.show-en .nav-link .label-zh, body.show-en .dropdown-link .label-zh { display: none !important; }

/* When both languages shown */
body.show-both .lang-zh, body.show-both .label-zh { display: block !important; }
body.show-both .lang-en, body.show-both .label-en { display: block !important; }
body.show-both a .label-zh, body.show-both a .label-en,
body.show-both .nav-link .label-zh, body.show-both .nav-link .label-en,
body.show-both .dropdown-link .label-zh, body.show-both .dropdown-link .label-en { display: inline !important; }

/* Language switch button in header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: var(--fs-xs);
}

.lang-switch button {
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  background: transparent;
  color: var(--color-text-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.lang-switch button.active {
  background: var(--color-secondary);
  color: var(--color-white) !important;
}

.lang-switch button:hover:not(.active) {
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   LAZY LOAD
   ============================================================ */
img[data-src] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

img[data-src].loaded {
  opacity: 1;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-text-light); }
.text-primary { color: var(--color-primary); }
.text-white  { color: var(--color-white); }
.fw-bold     { font-weight: var(--fw-bold); }
.fw-medium   { font-weight: var(--fw-medium); }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: var(--space-md); }
.mt-2  { margin-top: var(--space-xl); }
.mt-3  { margin-top: var(--space-2xl); }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: var(--space-md); }
.mb-2  { margin-bottom: var(--space-xl); }
.mb-3  { margin-bottom: var(--space-2xl); }

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

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-heading h2 {
  margin-bottom: var(--space-sm);
}

.section-heading p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   MOBILE DEFAULTS (< 1024px)
   ============================================================ */

/* Hide desktop nav and show hamburger on mobile/tablet */
.main-nav {
  display: none;
}

/* On mobile: show only logo, lang-switch, and hamburger */
.header-cta-call,
.header-cta-quote {
  display: none;
}

/* Mobile header layout */
@media (max-width: 1023px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 var(--space-md);
  }

  .site-logo img {
    height: 36px;
  }

  .header-actions {
    gap: var(--space-xs);
  }

  .header-cta-call,
  .header-cta-quote {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Hero adjustments */
  .hero {
    min-height: 400px;
    padding: calc(64px + var(--space-xl)) 0 var(--space-xl);
  }

  .hero-inner h1,
  .hero-title {
    font-size: var(--fs-2xl) !important;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding: calc(64px + var(--space-lg)) 0 var(--space-lg);
  }

  .page-hero-title {
    font-size: var(--fs-2xl) !important;
  }

  /* Breadcrumb */
  .breadcrumb-nav {
    margin-top: 64px;
  }

  /* CTA actions */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Section padding */
  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ============================================================
   RESPONSIVE — Tablet (768px)
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }

  .hero { min-height: 540px; }
  .hero-content h1,
  .hero-inner h1,
  .hero-title { font-size: var(--fs-4xl); }

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

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

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

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

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

  .content-with-sidebar {
    grid-template-columns: 1fr 300px;
  }

  .content-layout {
    grid-template-columns: 1fr 300px;
  }

  .content-sidebar {
    order: unset;
  }

  .sidebar {
    order: unset;
  }

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

/* ============================================================
   RESPONSIVE — Desktop (1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .menu-toggle,
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-nav,
  .mobile-overlay {
    display: none !important;
  }

  .header-cta-call,
  .header-cta-quote {
    display: inline-flex !important;
  }

  .service-grid,
  .services-grid,
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid,
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .aggregation-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }

  .content-layout {
    grid-template-columns: 1fr 320px;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .fab-container,
  .back-to-top,
  .mobile-nav,
  .mobile-overlay,
  .menu-toggle,
  .cta-section,
  .breadcrumb {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 1em 0;
    background: none;
  }

  .hero::before {
    display: none;
  }

  .hero-content h1 {
    color: #000;
    font-size: 24pt;
  }

  .page-content {
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  .page-content table {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
  }
}
