/* ═══════════════════════════════════════════════════════════════════
   shared.css — common design system for SMOVECITY marketing pages
   Used by index.html and every sub-page (aboutus, contact, blog,
   webinar, podcast). Only includes tokens, typography, nav, footer
   and a few editorial primitives — section-specific CSS stays inline
   in each page.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --ink:        #0F1419;
  --ink-soft:   #3A3F47;
  --ink-mute:   #6B7280;
  --line:       #DAD3C6;
  --line-soft:  #E8E3D6;
  --paper:      #F5F1E8;
  --paper-2:    #EDE7D7;
  --white:      #FCFAF4;
  --accent:     #14304F;
  --accent-2:   #2A4D75;

  --m-bike:     #16A34A;
  --m-scooter:  #7C3AED;
  --m-moped:    #F59E0B;
  --m-transit:  #3B9EFF;
  --m-ride:     #EF4444;
  --m-carshare: #6366F1;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --gutter:  32px;
  --col:     1280px;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Defensive: never allow horizontal scroll bleed from a misbehaving section */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Safety net — any direct image inside main content stays inside its box */
main img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }

.container { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Nav (sticky, blurred) ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, .85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a {
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
@media (max-width: 1180px) { .nav-links { gap: 22px; font-size: 13.5px; } }
@media (max-width: 980px)  { .nav-links { gap: 16px; font-size: 13px; } }
@media (max-width: 820px)  { .nav-links { display: none; } }

/* ── Mobile nav (hamburger + fullscreen overlay) ────────────────── */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; margin: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay-inner {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}
.nav-overlay-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-overlay-close {
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav-overlay-close svg { width: 24px; height: 24px; }
.nav-overlay-links {
  flex: 1;
  display: flex; flex-direction: column;
  padding: 8px 0 0;
  gap: 0;
}
.nav-overlay-links a,
.nav-overlay-links .nav-section {
  border-bottom: 1px solid var(--line-soft);
}
.nav-overlay-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 18px 0;
  text-decoration: none;
}
.nav-overlay-links a::after {
  content: "→";
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 16px;
  transition: transform .15s ease, color .15s ease;
}
.nav-overlay-links a:hover { color: var(--accent); }
.nav-overlay-links a:hover::after { transform: translateX(3px); color: var(--accent); }
.nav-section {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 24px 0 10px;
  border-bottom: 0 !important;
}
.nav-overlay-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  margin-top: 28px;
  text-decoration: none;
  align-self: stretch;
}
body.nav-open { overflow: hidden; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ── Motion: reveal-on-scroll + counters ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.stat-num[data-target] { font-variant-numeric: tabular-nums; }

/* ── Sub-page hero (no globe, just centered text) ────────────── */
.sub-hero {
  padding: clamp(80px, 11vw, 130px) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}
.sub-hero-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 28px;
}
.sub-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 16ch; margin: 0;
}
.sub-hero h1 em { font-style: italic; color: var(--accent); }
.sub-hero-sub {
  margin-top: 28px;
  font-size: 19px; color: var(--ink-soft); line-height: 1.55; max-width: 640px;
}
.sub-hero-sub strong { color: var(--ink); font-weight: 600; }

/* ── Editorial section primitives ────────────────────────────── */
.section { padding: clamp(70px, 10vw, 110px) 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: 120px 1fr; gap: 48px;
  margin-bottom: 48px; align-items: baseline;
}
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.section-num {
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  letter-spacing: 0.04em; padding-top: 8px;
}
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05;
  letter-spacing: -0.015em; max-width: 20ch; margin: 0 0 18px;
}
.section-lead {
  font-size: 18px; color: var(--ink-soft); line-height: 1.6; max-width: var(--measure); margin: 0;
}

/* Long-form paragraphs inside a sub-page section */
.prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; margin: 0 0 18px; max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--ink);
}
.prose a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.prose a:hover { text-decoration-color: var(--ink); color: var(--ink); }

/* ── Blog post layout ────────────────────────────────────────── */

.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: 16px;
}
.post-back:hover { color: var(--ink); }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 24px;
}
.post-meta .cat {
  padding: 4px 10px;
  background: var(--paper-2);
  border-radius: 4px;
  color: var(--ink);
}
.post-meta .sep { opacity: .5; }

.post-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6.5vw, 76px); line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.post-title em { font-style: italic; color: var(--accent); }

.post-byline {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.post-byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14304F, #2A4D75);
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.post-byline-text { display: grid; gap: 2px; }
.post-byline-name {
  font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink);
}
.post-byline-role {
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
}

.post-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 48px;
  display: block;
}

.post-body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.post-body p { margin: 0 0 22px; max-width: 100%; }
.post-body p:first-child::first-letter,
.post-body > p.lede::first-letter {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 0.9;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 400;
}
.post-body p strong { color: var(--ink); font-weight: 600; }
.post-body p em { font-style: italic; color: var(--ink); }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color .15s ease;
}
.post-body a:hover { text-decoration-color: var(--accent); }

.post-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 20px;
}
.post-body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
}

.post-body ul, .post-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.post-body li { margin-bottom: 8px; }

.post-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.post-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans); font-style: normal; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-mute);
}

.post-body code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.post-body figure {
  margin: 32px 0;
}
.post-body figure img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.post-body figure figcaption {
  margin-top: 12px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}

.post-footer {
  margin: 64px 0 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 26px;
}
.post-author-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.post-author-card .post-byline-avatar { width: 52px; height: 52px; font-size: 16px; }
.post-author-card-text { flex: 1; }
.post-author-card-text strong {
  font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink);
}
.post-author-card-text p {
  margin: 6px 0 0;
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}

.post-nav {
  display: flex; gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}
.post-nav a {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.post-nav a:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.post-nav a .label {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 6px;
}
.post-nav a strong {
  font-family: var(--serif); font-weight: 400; font-size: 17px;
  letter-spacing: -0.005em; color: var(--ink);
  display: block;
}

/* Make blog cards on /blog.html clickable */
a.blog-card,
a.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  cursor: pointer;
}

/* ── Footer (shared across all pages) ────────────────────────── */
footer.site-footer {
  background: var(--paper-2); padding: 80px 0 40px;
  font-size: 14px; color: var(--ink-soft);
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { font-size: 17px; margin-bottom: 18px; display: inline-block; }
.footer-brand p {
  margin: 0 0 22px; max-width: 460px;
  color: var(--ink-soft); line-height: 1.65;
}
.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: color .15s ease, border-color .15s ease, transform .15s ease, background .15s ease;
}
.footer-social a:hover {
  color: var(--white); background: var(--ink); border-color: var(--ink);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
footer h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
footer ul a {
  display: inline-block; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 5px; text-decoration-thickness: 1.5px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
footer ul a:hover { text-decoration-color: var(--ink); }
.footer-legal {
  margin-top: 50px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; gap: 14px;
  font-family: var(--sans); font-size: 13px; color: var(--ink-mute);
  line-height: 1.6;
}
.footer-legal .footer-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
}
.footer-legal .footer-meta a {
  color: var(--ink-mute); text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.footer-legal .footer-meta a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.footer-legal-sep { color: var(--ink-mute); opacity: .5; }
