/* ============================================================
   Red Consulting / Red Talent — design system
   Palette derived from the logo: red #FF0000 + coral #ED7D31
   Refined into a calmer, premium burgundy/red + warm ivory.
   ============================================================ */
:root {
  --red: #C8102E;          /* premium burgundy-red (logo red, toned down) */
  --red-bright: #E11D2A;   /* hover/active accent */
  --orange: #ED7D31;       /* coral from logo, used as secondary */
  --grad: linear-gradient(120deg, #C8102E 0%, #E5533B 55%, #ED7D31 100%);
  --ink: #17130F;          /* warm near-black for text */
  --muted: #6B645C;        /* secondary text */
  --paper: #FFFFFF;
  --mist: #F8F6F3;         /* warm off-white sections */
  --mist-2: #F1EDE7;
  --line: #E7E1D8;
  --shadow: 0 1px 2px rgba(23,19,15,.04), 0 12px 40px rgba(23,19,15,.06);
  --radius: 16px;
  --maxw: 1180px;
  --nav-h: 72px;
  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- language visibility ---- */
body.lang-zh .en { display: none !important; }
body.lang-en .zh { display: none !important; }

/* ---- layout ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section.tight { padding: 72px 0; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; }
.brand img { height: 34px; width: auto; }
.brand .brand-text { font-size: 18px; line-height: 1.1; }
.brand .brand-text small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--mist-2); }
.nav-links a.active { color: var(--red); }

.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 8px; }
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.hamburger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(200,16,46,.22); }
.btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist-2); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 800; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative; border-radius: 22px; background: var(--grad);
  min-height: 380px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .orb {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9;
}
.hero-visual .o1 { width: 220px; height: 220px; background: rgba(255,255,255,.18); top: -40px; right: -30px; }
.hero-visual .o2 { width: 320px; height: 320px; background: rgba(255,255,255,.10); bottom: -90px; left: -50px; }
.hero-visual .stat { position: relative; color: #fff; text-align: center; padding: 28px; }
.hero-visual .stat .big { font-size: 48px; font-weight: 800; line-height: 1; }
.hero-visual .stat .lbl { font-size: 14px; opacity: .92; margin-top: 8px; letter-spacing: .02em; }

/* ---- section heading ---- */
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcd4c8; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mist-2); color: var(--red); font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card ul li { margin: 6px 0; }

/* ---- stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-cell { text-align: center; padding: 8px; }
.stat-cell .n { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.stat-cell .n .accent { color: var(--red); }
.stat-cell .t { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---- two column text ---- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.14; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 800; }
.split p { color: var(--muted); font-size: 16.5px; }
.lead-list { list-style: none; padding: 0; margin: 22px 0 0; }
.lead-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lead-list li:last-child { border-bottom: 1px solid var(--line); }
.lead-list .k { color: var(--red); font-weight: 800; min-width: 26px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .row { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-info .row:last-child { border-bottom: 1px solid var(--line); }
.contact-info .row .lab { font-weight: 700; min-width: 92px; }
.contact-info .row .val { color: var(--muted); }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 16px; background: var(--mist); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(200,16,46,.25); border-color: var(--red); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- footer ---- */
.footer { background: var(--ink); color: #E9E4DD; padding: 56px 0 32px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.footer a { color: #C9C2B8; display: block; padding: 5px 0; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer .brand-foot { font-size: 20px; font-weight: 800; color: #fff; }
.footer .brand-foot small { display: block; color: #9a9389; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; color: #8e877d; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px; gap: 2px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .lang-toggle { margin-left: 0; }
  .nav .lang-toggle { order: 3; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .footer .cols { grid-template-columns: 1fr; }
}
