/* ============================================================
   IMGCC USA — Main Stylesheet
   Inner Mongolia General Chamber of Commerce USA
   美国内蒙古总商会
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Serif+SC:wght@300;400;500;600&family=Nunito+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --cream:       #ede9e2;       /* deeper warm gray-beige */
  --white:       #f7f4f0;       /* slightly warm off-white for cards */
  --true-white:  #ffffff;
  --red:         #a93226;       /* deeper, richer red */
  --red-light:   #d4958f;
  --red-muted:   #e8d0ce;
  --blue:        #1e4a73;       /* deeper navy blue */
  --blue-light:  #7aaac8;
  --blue-muted:  #ccdce8;
  --gold:        #a07c2a;
  --gold-light:  #e8d8a0;
  --text-dark:   #141414;
  --text-mid:    #3a3a3a;
  --text-light:  #666666;
  --border:      #d4cec6;       /* slightly darker border */
  --shadow-sm:   0 2px 14px rgba(0,0,0,0.09);
  --shadow-md:   0 6px 32px rgba(0,0,0,0.13);
  --shadow-lg:   0 16px 60px rgba(0,0,0,0.16);
  --radius:      4px;
  --radius-lg:   12px;
  --transition:  0.3s ease;
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
  --font-serif:   'Noto Serif SC', 'Cormorant Garamond', serif;
  --font-body:    'Nunito Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Lang Switch (global) ───────────────────────────────────── */
[data-en] { display: none; }
.lang-en [data-cn] { display: none; }
.lang-en [data-en] { display: revert; }

/* ── Language Dropdown ──────────────────────────────────────── */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--true-white);
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

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

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--true-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  min-width: 110px;
  z-index: 200;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.7rem 1.1rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lang-option:hover {
  background: var(--blue-muted);
  color: var(--blue);
}

.lang-option.active {
  color: var(--red);
  font-weight: 700;
  background: var(--red-muted);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(237, 233, 226, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-cn {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.06em;
}

.nav-logo-en {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 1.5px;
  background: var(--red);
  transition: left var(--transition), right var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-links a:hover::after,
.nav-links a.active::after { left: 0.9rem; right: 0.9rem; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--blue-muted) 0%, var(--cream) 55%, var(--red-muted) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169,50,38,0.07) 0%, transparent 70%);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
}

.page-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-hero-cn {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-light);
  font-weight: 300;
}

/* ── Section Layout ─────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.section-title-cn {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--blue));
  margin: 1.5rem 0 2.5rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--true-white);
  box-shadow: 0 4px 20px rgba(169,50,38,0.28);
}

.btn-primary:hover {
  background: #8e2219;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(169,50,38,0.35);
}

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

.btn-outline:hover {
  background: var(--blue);
  color: var(--true-white);
  transform: translateY(-2px);
}

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tag-red  { background: var(--red-muted);  color: var(--red); }
.tag-blue { background: var(--blue-muted); color: var(--blue); }
.tag-gold { background: var(--gold-light); color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: #111d2b;
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo { display: flex; align-items: center; gap: 12px; }

.footer-logo img {
  width: 44px; height: 44px;
  object-fit: contain;
  opacity: 0.9;
}

.footer-logo-text .cn {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--true-white);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer-logo-text .en {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--true-white);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--red-light); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item .icon {
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red-light);
  opacity: 0.8;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-red  { color: var(--red); }
.text-blue { color: var(--blue); }
.text-gold { color: var(--gold); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .lang-dropdown { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 0.2rem;
    z-index: 99;
  }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
/* ── Footer Language Switcher (mobile only) ─────────────────── */
.footer-lang-mobile {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .footer-lang-mobile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
  }

  .footer-lang-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
  }

  .footer-lang-opt {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition);
    font-family: var(--font-body);
  }

  .footer-lang-opt:hover {
    color: rgba(255,255,255,0.9);
  }

  .footer-lang-opt.active {
    color: var(--true-white);
    font-weight: 700;
  }

  .footer-lang-sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
  }
}
