:root {
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-muted: #666666;
  --accent: #b30000;
  --border-soft: #e2e2e8;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.06);
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg);
}
/* === Full-page fade background for Services === */
.services-bg {
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.58),
      rgba(255, 255, 255, 0.48)
    ),
    url("assets/services-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* === PAGE BACKGROUNDS (About, Downloads, Contact) === */

.about-bg,
.downloads-bg,
.contact-bg {
  background-image:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.58),
      rgba(255,255,255,0.48)
    ),
    url("assets/about-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;  /* subtle parallax */
}

/* === PAGE BACKGROUND: Industries & Partners === */

.industries-bg,
.partners-bg {
  background-image:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.58),
      rgba(255,255,255,0.48)
    ),
    url("assets/zhangjiang.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-wrap img {
  height: 32px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 13px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

nav a {
  padding: 6px 8px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav a:hover {
  background: rgba(0,0,0,0.04);
}

.lang-switch {
  font-size: 12px;
  white-space: nowrap;
}

.lang-switch a {
  padding: 2px 4px;
  border-radius: 6px;
}

.lang-switch a.active {
  background: rgba(0,0,0,0.06);
  font-weight: 600;
}

/* Layout */
main {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
}

.section {
  margin-top: 32px;
}

.section h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.grid-2 {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.card, .list-block {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.list-block h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.list-block ul {
  padding-left: 18px;
  margin: 4px 0 6px;
  font-size: 14px;
}

.list-block li {
  margin-bottom: 4px;
}

.subline {
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 15px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.3fr);
  gap: 20px;
  margin-top: 18px;
}

form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

form input, form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d0dc;
  font-family: inherit;
  font-size: 14px;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

.button-primary {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.button-primary:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
  .grid-2 {
    grid-template-columns: minmax(0,1fr);
  }
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 15px;
  }
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
/* --- Modern header & navigation --- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 52px;
    width: auto;
}

/* Hide default list styling if any */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #222;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    border-bottom-color: #cc0000;
}

.main-nav a.active {
    border-bottom-color: #cc0000;
    font-weight: 600;
}

.lang-switch {
    margin-left: auto;
    font-size: 0.85rem;
    white-space: nowrap;
}

.lang-switch a {
    text-decoration: none;
    color: #555;
}

.lang-switch a.active-lang {
    color: #cc0000;
    font-weight: 600;
}

/* Hamburger button (mobile only) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #222;
    border-radius: 1px;
}

/* --- Hero section (if not already styled) --- */
.hero {
    position: relative;
    background: url("assets/background.jpg") center center / cover no-repeat;
    min-height: 420px;
    color: #fff;
}

.hero-overlay {
    background: rgba(0,0,0,0.35);
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
}

.hero-kicker {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 2.4rem;
    margin: 0 0 12px;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: #cc0000;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #a00000;
}

/* --- Layout helpers --- */

.content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.section {
    margin-bottom: 40px;
}

.card-grid-2 {
    display: grid;
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

/* --- Responsive adjustments --- */

@media (min-width: 900px) {
    .header-inner {
        align-items: center;
    }

    .card-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .header-inner {
        gap: 12px;
    }

    .lang-switch {
        display: none; /* optional: hide languages in very narrow screens */
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 20px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    /* When header has .nav-open, show the menu */
    .site-header.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}
/* ===== DOWNLOADS ARTICLE CARDS ===== */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 26px;   /* ← space between the two cards */
  margin-top: 20px;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.05);
}

.article-card h3 {
  margin: 0 0 6px;
}

.article-card p {
  margin: 6px 0 12px;
  color: var(--text-muted);
}

.article-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: underline;
}
