/*
Theme Name: Wu Lin Global
Theme URI: https://wulinglobal.com
Author: Wu Lin Global
Author URI: https://wulinglobal.com
Description: Official website theme for Wu Lin Global (无吝国际) — a bilingual Chinese/English brand management company. Features smooth language switching, GEO business section, brand wall, and contact form.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: All Rights Reserved
Text Domain: wu-lin-global
Tags: business, bilingual, chinese, english, brand-management
*/


/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --white: #ffffff;
  --off-white: #f7f6f3;
  --light: #eeece8;
  --border: #e0ddd8;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #888;
  --accent: #1a3a5c;       /* deep navy */
  --accent2: #c49a5a;      /* warm gold */
  --accent-light: #e8f0f8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans SC', system-ui, sans-serif;
}

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Force normal font rendering - fix squish/stretch issues */
* {
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* ─── LANGUAGE SYSTEM ─── */
[data-lang] { display: none; }
body.lang-en [data-lang="en"] { display: block; }
body.lang-zh [data-lang="zh"] { display: block; }
body.lang-en .il-en { display: inline; }
body.lang-zh .il-zh { display: inline; }
.il-en, .il-zh { display: none; }
body.lang-en .ilb-en { display: inline-block; }
body.lang-zh .ilb-zh { display: inline-block; }
.ilb-en, .ilb-zh { display: none; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  letter-spacing: 0.04em;
  line-height: 1;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  line-height: 1;
}

.nav-links a:hover { color: var(--dark); }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 20px;
}

.lang-btn {
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 40px 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-rule {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border);
  opacity: 0.5;
}

.hero-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent2);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-primary:hover { background: #142d4a; border-color: #142d4a; }

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── HERO STATS ─── */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-box {
  background: var(--white);
  padding: 32px 28px;
}

.stat-num {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stat-num strong {
  font-weight: 600;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ─── SECTION BASE ─── */
section {
  padding: 96px 40px;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent2);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mid);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 56px;
  font-weight: 400;
}

/* ─── ABOUT ─── */
#about {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 18px;
  font-weight: 400;
}

.about-body p:last-of-type { margin-bottom: 28px; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.about-card {
  background: var(--white);
  padding: 24px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.2s;
}

.about-card:hover { background: #fafafa; }

.about-card-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 16px;
  margin-top: 2px;
}

.about-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.about-card-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
}

/* ─── SERVICES ─── */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 36px 30px;
  position: relative;
  transition: background 0.2s;
}

.service-card:hover { background: var(--off-white); }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 30px; right: 30px;
  height: 1px;
  background: transparent;
  transition: background 0.3s;
}

.service-card:hover::after { background: var(--accent2); }

.service-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 16px;
  line-height: 1;
}

.service-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.service-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 400;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.tag {
  padding: 3px 9px;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ─── GEO ─── */
#geo {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.geo-benefit {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.geo-benefit:last-child { border-bottom: none; }

.geo-benefit-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  min-width: 24px;
  padding-top: 3px;
  letter-spacing: 0.05em;
}

.geo-benefit h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.4;
}

.geo-benefit p {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
}

.geo-panel {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 36px;
}

.geo-panel-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}

.geo-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.geo-node {
  background: var(--off-white);
  padding: 14px 16px;
  text-align: center;
}

.geo-node-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.geo-node-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.geo-case {
  padding: 20px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.geo-case-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.geo-case p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent);
  line-height: 1.6;
  font-weight: 400;
}

/* ─── BRANDS ─── */
#brands {
  background: var(--white);
}

.brands-featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}

.brand-card {
  background: var(--white);
  padding: 30px 24px;
  transition: background 0.2s;
}

.brand-card:hover { background: var(--off-white); }

.brand-cat {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 400;
}

.brand-metric {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Brand wall */
.brand-wall {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}

.brand-wall-item {
  min-width: 160px;
  background: var(--off-white);
  padding: 24px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.brand-wall-item:hover { background: var(--white); }

.brand-wall-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--dark);
  line-height: 1.3;
}

.brand-wall-cat {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ─── CHANNELS ─── */
#channels {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}

.channel-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.2s;
}

.channel-card:hover { background: #fafafa; }

.channel-icon {
  font-size: 28px;
  line-height: 1;
  min-width: 36px;
}

.channel-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.channel-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 400;
}

.channel-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cstat-val {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cstat-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  font-weight: 400;
}

/* ─── CONTACT ─── */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 6px;
  display: block;
  line-height: 1;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  line-height: 1.65;
  font-weight: 400;
}

.contact-value a {
  color: var(--dark);
  text-decoration: none;
}

.contact-value a:hover { color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

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

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  padding: 44px 40px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

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

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-logo-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.6;
  font-weight: 400;
}

.footer-icp {
  text-align: right;
}

.footer-icp a, .footer-icp span {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer-icp a:hover { color: rgba(255,255,255,0.6); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-inner, .about-grid, .geo-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .brands-featured { grid-template-columns: 1fr 1fr; }
  .channels-grid { grid-template-columns: 1fr; }
  .hero-rule { display: none; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .services-grid, .brands-featured { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 36px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-icp { text-align: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── SCROLL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
