/* ==========================================================================
   MARTIN ROSS FOR MAYOR — MARKHAM 2026 — v2
   Shared stylesheet — DRAFT FOR APPROVAL
   ========================================================================== */

:root {
  --red: #C8102E;
  --red-dark: #A50D26;
  --white: #FFFFFF;
  --navy: #1B2A4A;
  --navy-soft: #2A3D63;
  --band: #F2F2F0;
  --border: #E2E1DD;

  --font-head: 'Oswald', 'Noto Sans SC', 'Noto Sans Tamil', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'Noto Sans Tamil', sans-serif;

  --header-h: 92px;
  --max: 1120px;
}

html[data-lang="zh"] { --font-head: 'Noto Sans SC', 'Oswald', sans-serif; --font-body: 'Noto Sans SC', 'Inter', sans-serif; }
html[data-lang="ta"] { --font-head: 'Noto Sans Tamil', 'Oswald', sans-serif; --font-body: 'Noto Sans Tamil', 'Inter', sans-serif; }
html[data-lang="fr"] { --font-head: 'Oswald', sans-serif; --font-body: 'Inter', sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 4vw, 2.15rem); text-transform: uppercase; }
h3 { font-size: clamp(1.1rem, 2.8vw, 1.4rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.band { background: var(--band); }
.navy-band { background: var(--navy); color: var(--white); }
.section { padding: 52px 0; }
.section-tight { padding: 30px 0; }
.center { text-align: center; }
.small { font-size: .85rem; opacity: .8; }
.eyebrow { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: .6em; }
.src { font-size: .72rem; text-decoration: underline; color: var(--navy-soft); white-space: nowrap; margin-left: 4px; }

/* ---------- language visibility ---------- */
[data-lang-block] { display: none; }
body.lang-en [data-lang-block="en"],
body.lang-zh [data-lang-block="zh"],
body.lang-fr [data-lang-block="fr"],
body.lang-ta [data-lang-block="ta"] { display: revert; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 190;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 10px;
}
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-transform: uppercase; white-space: nowrap; }
.brand-eyebrow { font-size: .6rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.header-right { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; font-family: var(--font-head); font-size: .68rem; letter-spacing: .02em; }
.lang-toggle button {
  border: none; background: var(--white); color: var(--navy); padding: 6px 8px; cursor: pointer;
  font-family: inherit; font-size: inherit;
}
.lang-toggle button.active { background: var(--navy); color: var(--white); }
.lang-toggle button + button { border-left: 1px solid var(--navy); }

.btn {
  display: inline-block; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .03em; font-size: .82rem; font-weight: 600;
  padding: 11px 18px; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-whatsapp { background: #25D366; color: #06210f; border-color: #25D366; }
.btn-whatsapp:hover { background: #1ebe59; }
.btn-sm { padding: 8px 12px; font-size: .68rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--navy); border-radius: 6px;
  background: var(--white); cursor: pointer; flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 18px; height: 2px; background: var(--navy); margin: 4px auto; }

/* ---------- mobile header layout (<960px) ---------- */
/* Header sits in normal flow (not fixed) and wraps to a second row so the
   logo, language toggle, and both CTA buttons are all visible without
   opening the menu. Only the page-link list collapses, via max-height
   (not transform/fixed+bottom:0, which was leaving a stray white bar
   on close on some mobile browsers). */
@media (max-width: 959.98px) {
  .site-header { position: relative; top: 0; height: auto; }
  body { padding-top: 0; }
  html { scroll-padding-top: 12px; }

  .site-header .wrap {
    flex-wrap: wrap; row-gap: 10px; height: auto; padding: 14px 20px;
  }
  .header-right {
    flex: 1 1 100%; flex-wrap: wrap; row-gap: 8px; justify-content: space-between;
  }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); z-index: 180; border-top: 1px solid var(--border);
    max-height: 0; overflow: hidden; padding: 0 20px;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 70vh; overflow-y: auto; padding: 20px; }
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.main-nav a { display: block; padding: 13px 6px; font-family: var(--font-head); text-transform: uppercase; font-size: 1.02rem; border-bottom: 1px solid var(--border); text-decoration: none; }
.main-nav .nav-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; background: transparent; padding: 0; overflow: visible; z-index: auto; max-height: none; }
  .main-nav ul { flex-direction: row; gap: 14px; }
  .main-nav a { padding: 6px 0; font-size: .76rem; border-bottom: none; }
  .main-nav .nav-cta { display: none; }
  .site-header .wrap { flex-wrap: nowrap; }
}

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 44px 0 36px; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero .subhead { max-width: 620px; font-size: 1.02rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.identity-bar { background: var(--red); color: var(--white); text-align: center; padding: 12px 16px; font-family: var(--font-head); text-transform: uppercase; font-size: .82rem; letter-spacing: .02em; }

/* ---------- photos ---------- */
.photo { border-radius: 8px; width: 100%; object-fit: cover; }
.photo-frame { border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.photo-caption { font-size: .75rem; opacity: .7; margin-top: 8px; }

/* ---------- placeholder image blocks (for assets not yet supplied) ---------- */
.placeholder {
  background: repeating-linear-gradient(135deg, var(--band), var(--band) 12px, #e6e5e1 12px, #e6e5e1 24px);
  border: 2px dashed #B9B7B0;
  color: var(--navy-soft);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  min-height: 220px; border-radius: 8px; padding: 20px;
}
.placeholder small { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .75rem; margin-top: 6px; opacity: .75; }

/* ---------- video ---------- */
.video-wrap { max-width: 540px; margin: 0 auto; }
.video-wrap video { width: 100%; border-radius: 10px; border: 1px solid var(--border); background: #000; }

/* ---------- receipts strip ---------- */
.receipts { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .receipts { grid-template-columns: repeat(3, 1fr); } }
.receipt-tag {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 20px; position: relative; box-shadow: 0 1px 0 rgba(27,42,74,.04);
}
.receipt-tag::before {
  content: "EVIDENCE"; position: absolute; top: -10px; left: 18px; background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-size: .58rem; letter-spacing: .12em; padding: 3px 8px; border-radius: 4px;
}
.receipt-number { font-family: var(--font-head); color: var(--red); font-size: clamp(2rem, 5.6vw, 2.6rem); font-weight: 700; line-height: 1; margin: 10px 0 8px; }
.receipt-tag p { margin-bottom: 6px; font-size: .9rem; }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }

.plank-card {
  background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--red);
  border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--navy);
}
.plank-card .plank-title { font-family: var(--font-head); text-transform: uppercase; font-size: .98rem; color: var(--red); letter-spacing: .02em; }
.plank-card p { margin: 0; font-size: .9rem; }

/* ---------- episode cards (One Set of Rules) ---------- */
.episode-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.episode-num { font-family: var(--font-head); color: var(--red); font-size: .78rem; letter-spacing: .1em; }
.episode-takeaway { background: var(--band); border-left: 4px solid var(--navy); padding: 10px 14px; border-radius: 6px; font-size: .88rem; font-style: italic; margin-top: 12px; }
.draft-flag { background: #FFF4E5; border: 1px dashed var(--red); color: var(--red-dark); font-size: .75rem; padding: 8px 12px; border-radius: 6px; margin-top: 12px; }

/* ---------- how to vote cards ---------- */
.vote-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.vote-card .vote-when { font-family: var(--font-head); color: var(--red); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- contact block ---------- */
.contact-block { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: .95rem; }
.contact-block a { text-decoration: underline; }

/* ---------- email/help capture band ---------- */
.help-band { background: var(--navy); color: var(--white); border-radius: 12px; padding: 30px 24px; text-align: center; }
.help-band h2 { color: var(--white); }

/* ---------- footer ---------- */
footer.site-footer { background: var(--navy); color: var(--white); padding: 36px 0 22px; margin-top: 36px; }
footer.site-footer a { text-decoration: none; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 12px; font-size: .75rem; }
.footer-langs { display: flex; gap: 10px; font-size: .78rem; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; font-size: .7rem; opacity: .8; display: flex; flex-direction: column; gap: 6px; }
.translation-note { font-size: .68rem; opacity: .65; margin-top: 6px; }

/* ---------- press mention ---------- */
.press-strip { padding: 30px 0 6px; }
.press-card {
  background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--red);
  border-radius: 10px; padding: 22px 24px 20px; position: relative;
  box-shadow: 0 2px 16px rgba(27,42,74,.09);
  max-width: 780px; margin: 0 auto; text-decoration: none; color: var(--navy); display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.press-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,42,74,.15); }
.press-card::before {
  content: "NEW"; position: absolute; top: -11px; left: 18px; background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: .62rem; letter-spacing: .12em; padding: 3px 10px; border-radius: 4px;
  animation: press-pulse 2.2s ease-in-out infinite;
}
body.lang-zh .press-card::before { content: "新"; }
body.lang-fr .press-card::before { content: "NOUVEAU"; }
body.lang-ta .press-card::before { content: "புதிது"; }
@keyframes press-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.45); }
  50% { box-shadow: 0 0 0 7px rgba(200,16,46,0); }
}
.press-outlet { font-family: var(--font-head); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.press-headline { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; line-height: 1.28; margin-bottom: 8px; }
.press-dek { font-size: .92rem; opacity: .85; margin-bottom: 12px; }
.press-cta { display: inline-block; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--red); font-weight: 600; }

/* ---------- pledge card ---------- */
.pledge-card {
  background: var(--navy); border-radius: 12px; padding: 34px 30px; position: relative;
  box-shadow: 0 4px 22px rgba(27,42,74,.2);
  max-width: 700px; margin: 0 auto; text-decoration: none; color: var(--white); display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pledge-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27,42,74,.3); }
.pledge-card::before {
  content: "MY PLEDGE"; position: absolute; top: -13px; left: 26px; background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: .64rem; letter-spacing: .12em; padding: 4px 12px; border-radius: 4px;
  animation: press-pulse 2.2s ease-in-out infinite;
}
body.lang-zh .pledge-card::before { content: "我的承诺"; }
body.lang-fr .pledge-card::before { content: "MON ENGAGEMENT"; }
body.lang-ta .pledge-card::before { content: "என் உறுதிமொழி"; }
.pledge-headline { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; margin-bottom: 12px; color: var(--white); text-transform: uppercase; }
.pledge-dek { font-size: 1.02rem; opacity: .92; margin-bottom: 18px; }
.pledge-cta { display: inline-block; font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--white); font-weight: 700; border-bottom: 2px solid var(--red); padding-bottom: 3px; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem; line-height: 1; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }

/* ---------- closing CTA ---------- */
.closing-cta { text-align: center; padding: 52px 0; }
.closing-cta .hero-actions { justify-content: center; }

.review-note { font-size: .72rem; color: var(--red); border: 1px dashed var(--red); padding: 8px 10px; border-radius: 6px; display: inline-block; margin-top: 8px; }
.story-block { max-width: 720px; }
.story-block .closing-line { font-weight: 600; }
.list-plain { list-style: none; margin: 0 0 20px; padding: 0; }
.list-plain li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--border); position: relative; font-size: .95rem; }
.list-plain li::before { content: "•"; color: var(--red); position: absolute; left: 6px; font-weight: 700; }