/* =========================================================
   ZEUS DESIGN SYSTEM v1.0
   Shared visual language across Zeus properties
   ========================================================= */

:root {
  --zeus-navy: #0b1f33;
  --zeus-charcoal: #1a1a1a;
  --zeus-slate: #2f3e4e;
  --zeus-steel: #6f8fa3;
  --zeus-bg-light: #ffffff;
}

/* Base typography */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--zeus-charcoal);
  background-color: var(--zeus-bg-light);
  line-height: 1.65;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  color: var(--zeus-slate);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

/* Links */
a {
  color: var(--zeus-steel);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background-color: var(--zeus-navy);
  color: #ffffff;
  padding: 0; /* topbar provides padding */
}

.site-header h1,
.site-header p {
  color: #ffffff;
}

/* Layout */
.content,
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 4rem 1.5rem;
}

/* Footer */
.site-footer {
  background-color: #f4f6f8;
  color: #555;
  font-size: 0.9rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

:root{
  --ink:#0b1f33;
  --muted:#5a6772;
  --bg:#ffffff;
  --alt:#f4f6f8;
  --card:#ffffff;
  --border:#e6e9ee;
  --accent:#123a63;
  --accent2:#0f2a45;
}

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

body{
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:#1a1a1a;
  background:var(--bg);
  line-height:1.6;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

.header{
  background:var(--ink);
  color:#fff;
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:20px;
}
.brand-name{
  font-weight:800;
  letter-spacing:0.2px;
}
.brand-tag{
  font-size:0.9rem;
  opacity:0.85;
  margin-top:2px;
}
.nav{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  color:#fff;
  text-decoration:none;
  font-size:0.95rem;
  opacity:0.9;
}
.nav a:hover{ opacity:1; }
.nav-cta{
  background:#fff;
  color:var(--ink) !important;
  padding:8px 12px;
  border-radius:6px;
  font-weight:700;
}

.hero{
  background:linear-gradient(180deg, var(--ink) 0%, var(--accent2) 100%);
  color:#fff;
  padding:64px 0 50px;
}
.hero h1{
  font-size:2.2rem;
  line-height:1.2;
  margin:0 0 14px 0;
}
.lead{
  font-size:1.1rem;
  color:rgba(255,255,255,0.9);
  max-width:900px;
  margin:0 0 22px 0;
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0 26px;
}
.pill{
  border:1px solid rgba(255,255,255,0.22);
  padding:7px 10px;
  border-radius:999px;
  font-size:0.9rem;
  color:rgba(255,255,255,0.92);
  background:rgba(255,255,255,0.06);
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:8px;
}
.button{
  display:inline-block;
  text-decoration:none;
  padding:11px 16px;
  border-radius:8px;
  font-weight:800;
  font-size:0.95rem;
}
.button.primary{
  background:#fff;
  color:var(--ink);
}
.button.secondary{
  border:1px solid rgba(255,255,255,0.35);
  color:#fff;
  background:transparent;
}
.button.primary:hover{ background:#e9eef3; }
.button.secondary:hover{ background:rgba(255,255,255,0.08); }

.note{
  margin-top:16px;
  font-size:0.95rem;
  color:rgba(255,255,255,0.85);
  border-left:3px solid rgba(255,255,255,0.35);
  padding-left:12px;
}

.section{ padding:56px 0; }
.section.alt{ background:var(--alt); }
.section h2{
  margin:0 0 18px 0;
  color:var(--ink);
  font-size:1.6rem;
}
.section p{ color:#2b2b2b; }

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}
@media (max-width: 820px){
  .grid-2{ grid-template-columns:1fr; }
  .hero h1{ font-size:1.9rem; }
  .nav{ gap:12px; }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px 18px;
  box-shadow:0 1px 0 rgba(0,0,0,0.02);
}
.card h3{
  margin:0 0 10px 0;
  color:var(--ink);
}
ul{ margin:0; padding-left:18px; }
li{ margin:8px 0; color:#2a2a2a; }

.checklist{
  list-style:none;
  padding-left:0;
  margin:0;
}
.checklist li{
  position:relative;
  padding-left:28px;
  margin:10px 0;
}
.checklist li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--accent);
  font-weight:900;
}

.contact a{ color:var(--accent); text-decoration:none; font-weight:800; }
.contact a:hover{ text-decoration:underline; }

.small{ color:var(--muted); font-size:0.95rem; }

.disclaimer{
  margin-top:18px;
  color:#4b5561;
  font-size:0.92rem;
}

.footer{
  background:#0a1623;
  color:rgba(255,255,255,0.85);
  padding:22px 0;
}
.footer-inner{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer a{
  color:rgba(255,255,255,0.85);
  text-decoration:none;
  margin-left:14px;
}
.footer a:hover{ color:#fff; }

/* FIX: Changed colors from #fff to dark variables for legibility */
#experience {
  color: var(--zeus-charcoal);
}

#experience h2 {
  color: var(--zeus-slate);
}

#experience p {
  color: var(--zeus-charcoal);
}

/* Header layout with logo */
.header-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo img {
  height: 96px;
  width: auto;
  display: block;
}

.branding h1 {
  margin: 0;
}

.tagline {
  margin-top: 0.4rem;
  font-size: 1rem;
  opacity: 0.95;
}
/* Language toggle */
.lang-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.9);
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
/* Default language visibility (EN) */
[data-lang-content="zh"] {
  display: none;
}
/* White top bar to support boxed logo */
.topbar {
  background: #ffffff;
  padding: 0.9rem 1.5rem;
}

.topbar .branding h1,
.topbar .tagline {
  color: var(--zeus-slate) !important;
}

.topbar .lang-btn {
  color: var(--zeus-slate);
  border-color: rgba(47, 62, 78, 0.35);
}

.topbar .lang-btn[aria-pressed="true"],
.topbar .lang-btn:hover {
  border-color: rgba(47, 62, 78, 0.8);
}

.topbar .lang-sep {
  color: rgba(47, 62, 78, 0.65);
}
/* Kill the oversized ghost headline effect in hero */
.hero h1 {
  color: #ffffff;
  opacity: 1;
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 1rem 0;
}
/* Subtle hero separation for firm-style layout */
.hero {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================
   MOBILE HEADER FIX
   ========================================= */
@media (max-width: 768px) {
  /* Allow header items to wrap and space them out */
  .header-flex {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 0; /* Add vertical gap between rows */
  }

  /* Force branding text to a new full-width line */
  .branding {
    flex-basis: 100%;
    order: 3; /* Place after logo and toggle */
    text-align: center;
    margin-top: 0.75rem;
    padding-bottom: 0.25rem;
  }

  /* Place logo on the top left */
  .logo {
    order: 1;
  }

  /* Place language toggle on the top right */
  .lang-toggle {
    order: 2;
    margin-left: 0; /* Remove auto margin so justify-content works */
  }

  /* Reduce logo size slightly for mobile */
  .logo img {
    height: 60px;
  }

  /* Adjust font sizes for better mobile scale */
  .branding h1 {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 0.95rem;
    margin-top: 0.25rem;
  }

  /* Reduce padding on the container for more space */
  .topbar {
      padding: 0.75rem 1rem;
  }
}
