/* =========================================================
   AMAX Base Styles
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--blue);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 calc(var(--grid) * 4);
}

section {
  padding: calc(var(--grid) * 12) 0;
}

/* Typography helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

p {
  line-height: 1.7;
}

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

/* Language display helpers (used when JS is loading) */
.lang-zh [data-en-only] {
  display: none;
}

.lang-en [data-zh-only] {
  display: none;
}

/* Chinese language clarity overrides */
.lang-zh body {
  font-weight: var(--font-weight-body-zh);
  line-height: 1.75;
}

.lang-zh h1,
.lang-zh h2,
.lang-zh h3,
.lang-zh h4,
.lang-zh h5,
.lang-zh h6 {
  font-weight: var(--font-weight-heading-zh);
}

.lang-zh p,
.lang-zh .service-desc,
.lang-zh .hero-desc,
.lang-zh .page-header p {
  line-height: 1.8;
}

@media (max-width: 767px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding: 56px 0;
  }
}
