/* =========================================================================
   StationWorks / Mobilize — corporate static site
   Palette sourced from the Mobilize brand mark & deck theme.
   ========================================================================= */

:root {
  --navy:        #1C2740;  /* primary brand navy (logo badge)        */
  --navy-deep:   #0B1020;  /* near-black navy for footers/overlays   */
  --fire:        #CC2020;  /* engine / fire red                      */
  --orange:      #FF6A4D;  /* logo compass orange (accent)           */
  --gold:        #FFC000;  /* logo gold (highlights, rules)          */
  --paper:       #FBF8F4;  /* warm off-white page background         */
  --paper-2:     #F4EEE4;  /* slightly deeper paper for cards        */
  --sand:        #E6DFD1;  /* warm border / divider                  */
  --ink:         #1B1F26;  /* body text                              */
  --ink-soft:    #4A515B;  /* secondary text                         */
  --ink-faint:   #6E747C;  /* captions, meta                         */

  --maxw: 1120px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,16,32,.06), 0 12px 32px -12px rgba(11,16,32,.22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--fire); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fire);
  margin: 0 0 .9rem;
}
.eyebrow.on-dark { color: var(--gold); }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--fire); color: #fff; }
.btn-primary:hover { background: #b21b1b; color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--sand); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,244,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); }
.brand img { width: 34px; height: 34px; }
.brand .name { font-size: 1.25rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }

.nav-menu { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  color: var(--ink-soft); padding: .25rem 0; position: relative;
}
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--orange); border-radius: 2px;
}
.nav-cta { white-space: nowrap; }

/* Mobile nav via checkbox hack — no JS */
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 820px) {
  .nav-toggle-label {
    display: block; cursor: pointer; padding: .5rem; margin: -.5rem -.5rem -.5rem 0;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    display: block; width: 24px; height: 2px; background: var(--navy);
    position: relative; transition: .2s;
  }
  .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
  .nav-toggle-label span::before { top: -7px; }
  .nav-toggle-label span::after  { top: 7px; }

  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--sand);
    padding: .5rem var(--gut) 1.2rem;
  }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--sand); }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
}

/* ---- Sections --------------------------------------------------------- */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-dark { background: var(--navy); color: #E9ECF2; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #C3CAD6; }

.section-paper-2 { background: var(--paper-2); }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-deep);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(110deg, rgba(11,16,32,.92) 0%, rgba(11,16,32,.78) 45%, rgba(28,39,64,.55) 100%), url("../img/engine-on-line.jpg");
  background-size: cover; background-position: center 38%;
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .tagline {
  font-family: var(--sans); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .82rem; color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero .lead { color: #D6DBE4; max-width: 54ch; }
.hero .pillars {
  display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2rem;
  list-style: none; padding: 0;
}
.hero .pillars li {
  font-family: var(--sans); font-weight: 700; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .4rem .9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Generic page banner (non-home) ----------------------------------- */
.page-banner { background: var(--navy); color: #fff; }
.page-banner .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-banner h1 { color: #fff; }
.page-banner .lead { color: #C3CAD6; }

/* ---- Grid helpers ----------------------------------------------------- */
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .kicker {
  font-family: var(--sans); font-weight: 800; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .7rem;
}

/* ---- Feature / value rows -------------------------------------------- */
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.value-list li { display: flex; gap: .9rem; align-items: flex-start; }
.value-list .dot {
  flex: 0 0 auto; width: 12px; height: 12px; margin-top: .5rem; border-radius: 3px;
  background: var(--orange); transform: rotate(45deg);
}
.value-list strong { color: var(--navy); }

/* ---- Founders --------------------------------------------------------- */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }
.founder {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.founder .photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.founder .body { padding: 1.4rem 1.5rem 1.6rem; }
.founder h3 { margin-bottom: .15rem; }
.founder .role {
  font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fire); margin-bottom: .9rem;
}
.founder p { color: var(--ink-soft); font-size: .98rem; }
.founder p:last-child { margin-bottom: 0; }

/* ---- Timeline (roadmap) ---------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.3rem;
  padding: 1.3rem 0; border-top: 1px solid var(--sand);
}
.timeline li:last-child { border-bottom: 1px solid var(--sand); }
.timeline .when {
  font-family: var(--sans); font-weight: 800; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--orange); padding-top: .15rem;
}
.timeline .when.now { color: var(--fire); }
.timeline h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---- CTA band --------------------------------------------------------- */
.cta-band { background: var(--navy-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #C3CAD6; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.contact-card .label {
  font-family: var(--sans); font-weight: 800; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .3rem;
}
.contact-card .email { font-size: 1.3rem; font-family: var(--serif); }
.contact-card .person { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--sand); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #AEB6C4; padding-block: 3rem 2rem; font-size: .92rem; }
.site-footer a { color: #D6DBE4; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand .name { font-family: var(--serif); font-size: 1.15rem; color: #fff; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-weight: 600; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #8A93A3;
}

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 52ch; }
