/* ============================================================
   Allen Chen for Burnaby City Council 2026
   Brand: trustworthy navy + warm gold accent (doctor, calm, civic)
   ============================================================ */

:root {
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1b3a6a;
  --navy-100: #eaf0f7;
  --gold-500: #f4c95d;
  --gold-600: #e3b34a;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --paper: #fbfaf6;
  --white: #ffffff;
  --alt: #f4f1ea;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06), 0 2px 8px rgba(11,37,69,.04);
  --shadow-md: 0 6px 24px rgba(11,37,69,.10);
  --shadow-lg: 0 20px 60px rgba(11,37,69,.18);

  --font-sans: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Noto Sans TC', Georgia, serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

[lang="zh"], html[data-lang="zh"] body { font-family: 'Noto Sans TC', 'Inter', sans-serif; }

img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-600); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(11,37,69,.08);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--navy-900);
}
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-500);
  font-family: var(--font-serif); font-weight: 800; font-size: 22px;
  border-radius: 10px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 15px; letter-spacing: .01em; }
.brand__text small { font-size: 11.5px; color: var(--ink-500); letter-spacing: .02em; }

.nav__links {
  display: flex; gap: 24px; margin-left: auto;
}
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-700);
  padding: 6px 0; position: relative;
}
.nav__links a:hover { color: var(--navy-900); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: 24px; }

.lang-toggle {
  background: transparent; border: 1px solid var(--ink-300);
  padding: 8px 12px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--navy-800); cursor: pointer;
  transition: all .15s ease;
}
.lang-toggle:hover { border-color: var(--navy-800); background: var(--navy-100); }
.lang-toggle span { display: none; }
html[data-lang="en"] .lang-toggle span[data-when="en"] { display: inline; }
html[data-lang="zh"] .lang-toggle span[data-when="zh"] { display: inline; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--primary { background: var(--navy-900); color: var(--gold-500); border-color: var(--navy-900); }
.btn--primary:hover { background: var(--navy-800); color: var(--gold-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: var(--gold-500); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(244,201,93,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 24px 120px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(244,201,93,.15);
  color: var(--gold-500);
  border: 1px solid rgba(244,201,93,.35);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 24px;
  font-weight: 800;
}
.hero__title span { display: block; }
.hero__accent { color: var(--gold-500); }
html[data-lang="zh"] .hero__title { font-family: 'Noto Sans TC', sans-serif; font-weight: 900; line-height: 1.18; font-size: clamp(32px, 4.4vw, 52px); }

.hero__lede {
  font-size: 18.5px;
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero__lede strong { color: var(--gold-500); font-weight: 700; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__cta .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero__cta .btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 22px; color: var(--gold-500); letter-spacing: -.01em; }
.hero__facts span { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

.hero__media { position: relative; }
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  background: var(--navy-700);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,37,69,.4) 100%);
  pointer-events: none;
}
.hero__badge {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.15;
  font-weight: 700;
  transform: rotate(-2deg);
}
.hero__badge span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero__badge strong { font-family: var(--font-serif); font-size: 22px; }

.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: var(--paper);
  clip-path: polygon(0 60%, 25% 30%, 50% 50%, 75% 25%, 100% 55%, 100% 100%, 0 100%);
}

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section--alt { background: var(--alt); }
.section__kicker {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}
.section__kicker::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 20px; height: 2px; background: var(--gold-500);
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy-900);
}
html[data-lang="zh"] .section__title { font-family: 'Noto Sans TC', sans-serif; font-weight: 900; }
.section__title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0;
  margin-top: 6px;
}
.section__lede {
  font-size: 18.5px;
  color: var(--ink-700);
  max-width: 68ch;
  margin: 0 0 56px;
}

/* ============ GRID-2 ============ */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.grid-2--reverse > :first-child { order: 2; }
.grid-2--reverse > :last-child { order: 1; }

/* ============ BULLETS ============ */
.bullets { list-style: none; padding: 0; margin: 28px 0 0; }
.bullets li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid rgba(11,37,69,.08);
  color: var(--ink-700);
}
.bullets li:last-child { border-bottom: 0; }
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 19px;
  width: 18px; height: 2px; background: var(--gold-500);
}
.bullets li strong { color: var(--navy-900); }

/* ============ QUOTE CARD ============ */
.quote-card {
  background: var(--navy-900);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '"';
  position: absolute; top: -10px; left: 20px;
  font-family: var(--font-serif);
  font-size: 180px;
  color: var(--gold-500);
  opacity: .25;
  line-height: 1;
}
.quote-card blockquote { margin: 0; position: relative; }
.quote-card p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 24px;
  font-weight: 500;
}
html[data-lang="zh"] .quote-card p { font-family: 'Noto Sans TC', sans-serif; font-weight: 500; }
.quote-card cite {
  font-style: normal;
  color: var(--gold-500);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
}

/* ============ CARDS (why) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(11,37,69,.08);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--gold-600);
  font-weight: 800;
  display: block; margin-bottom: 12px;
}
.card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--navy-900);
  font-weight: 700;
}
.card p { color: var(--ink-700); margin: 0; font-size: 15.5px; }

/* ============ PLATFORM ============ */
.platform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.platform__item {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(11,37,69,.08);
  border-top: 4px solid var(--gold-500);
  transition: transform .2s ease, box-shadow .2s ease;
}
.platform__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.platform__item:nth-child(4),
.platform__item:nth-child(5) { grid-column: span 1; }
@media (min-width: 900px) {
  .platform {
    grid-template-columns: repeat(6, 1fr);
  }
  .platform__item { grid-column: span 2; }
  .platform__item:nth-child(4) { grid-column: 2 / span 2; }
  .platform__item:nth-child(5) { grid-column: 4 / span 2; }
}
.platform__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-900);
  border-radius: 12px;
  margin-bottom: 18px;
}
.platform__icon svg { width: 24px; height: 24px; }
.platform__item h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--navy-900);
}
.platform__item p { color: var(--ink-700); margin: 0; font-size: 15px; }

/* ============ SERVICE ============ */
.service__stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid rgba(11,37,69,.08);
  border-left: 4px solid var(--gold-500);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: baseline; gap: 18px;
}
.stat strong {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--navy-900);
  line-height: 1;
  font-weight: 800;
}
.stat strong small { font-size: 18px; color: var(--ink-500); font-weight: 600; }
.stat span { color: var(--ink-700); font-weight: 500; }

/* ============ BANNER ============ */
.banner {
  background:
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(244,201,93,.12), transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(244,201,93,.12), transparent 50%);
}
.banner__inner { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.banner__quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
html[data-lang="zh"] .banner__quote { font-family: 'Noto Sans TC', sans-serif; }
.banner__sig {
  color: var(--gold-500);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
}

/* ============ JOIN ============ */
.join-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.join-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11,37,69,.08);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.join-card--accent {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.join-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0 0 14px;
  color: var(--navy-900);
  font-weight: 800;
}
.join-card--accent h3 { color: var(--gold-500); }
html[data-lang="zh"] .join-card h3 { font-family: 'Noto Sans TC', sans-serif; }
.join-card p { color: var(--ink-700); margin: 0 0 22px; }
.join-card--accent p { color: rgba(255,255,255,.85); }
.join-card .btn { align-self: flex-start; margin-top: auto; }

/* ============ FORM ============ */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.form input {
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: border-color .15s ease, background .15s ease;
}
.form input::placeholder { color: rgba(255,255,255,.4); }
.form input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(255,255,255,.14);
}
.form .btn { margin-top: 6px; }
.form__note { font-size: 12px; color: rgba(255,255,255,.6); margin: 4px 0 0; font-weight: 400; }
.form__success {
  background: rgba(244,201,93,.18);
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.85);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer strong { color: var(--gold-500); display: block; font-size: 17px; }
.footer__contact { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.footer__contact a { color: var(--white); }
.footer__contact a:hover { color: var(--gold-500); }
.footer__legal {
  grid-column: 1 / -1;
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px 120px; }
  .hero__media { max-width: 360px; margin: 0 auto; }
  .hero__badge { left: -8px; }
  .grid-2, .grid-2--reverse > :first-child, .grid-2--reverse > :last-child {
    grid-template-columns: 1fr; gap: 40px;
  }
  .grid-2--reverse > :first-child { order: 1; }
  .grid-2--reverse > :last-child { order: 2; }
  .cards { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 1fr !important; }
  .platform__item { grid-column: auto !important; }
  .join-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contact { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { height: 64px; }
  .brand__text small { display: none; }
  .nav__actions { gap: 8px; margin-left: auto; }
  .btn { padding: 10px 16px; font-size: 14px; }
  .hero__facts { grid-template-columns: 1fr; gap: 14px; }
  .hero__facts div { flex-direction: row; align-items: baseline; gap: 12px; }
  .quote-card { padding: 32px 24px; }
  .quote-card p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
}
