/* Firefighter Trades — shared web styles.
   Tokens mirror the app exactly: src/theme/colors.js + src/theme/shadows.js.
   Keep these in sync with the app; the site is meant to read as the same product.
   NOTE: the /android and /join pages are server-rendered from functions/index.js
   with deliberately inline CSS (self-contained, no external assets) — they
   duplicate these values on purpose. Change both if a token changes. */

:root {
  --navy:   #0D2240;
  --blue:   #2B6CB0;
  --red:    #BF0D18;
  --amber:  #F5A623;
  --black:  #0A0A0A;
  --slate:  #4A5568;
  --ash:    #EDF0F4;
  --white:  #FFFFFF;
  --green:  #38A169;
  --border: #D1D8E0;

  --card-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  --radius-card: 14px;
  --radius-btn: 12px;
  --wrap: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ash);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--red); }

/* ---------- App-style header bar (mirrors src/components/AppHeader.js) ---------- */

.appbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.appbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.appnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.appnav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.appnav a:hover { color: var(--white); }
.appnav a[aria-current="page"] { color: var(--amber); }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.card.flush { padding: 0; overflow: hidden; }

h1 {
  font-size: 27px;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 16px;
  color: var(--navy);
  margin: 24px 0 6px;
}

p, li { color: var(--slate); font-size: 15px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: var(--black); }

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 6px;
}

.lede { font-size: 17px; line-height: 1.55; }
.small { font-size: 13px; line-height: 1.5; color: var(--slate); }
.muted { color: var(--slate); opacity: 0.85; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 36px 28px 32px; }

.hero .logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
}

.hero h1 { font-size: 31px; }
.hero p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Buttons (mirror src/components/PrimaryButton.js) ---------- */

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 15px 22px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
}

.btn:hover { opacity: 0.88; }
.btn.secondary { background: var(--navy); }
.btn.amber { background: var(--amber); color: var(--navy) !important; }
.btn.outline {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn.block { display: block; width: 100%; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 22px 0 12px;
}

.btn-row .btn { flex: 1 1 200px; }

/* ---------- Numbered steps (mirrors the /android page) ---------- */

.step {
  border-top: 1px solid #E3E8EF;
  padding-top: 20px;
  margin-top: 20px;
}

.step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.steph {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.stepnum {
  flex: none;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 11px;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: #F7F9FC;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0;
}

.features h3 { margin: 0 0 4px; font-size: 15px; }
.features p { margin: 0; font-size: 14px; }

/* ---------- Callout (mirrors the amber note on the /android page) ---------- */

.note {
  background: #F7F9FC;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
}

.note p { margin: 0 0 10px; font-size: 14px; }
.note p:last-child { margin: 0; }

.badge {
  display: inline-block;
  background: #FFF7ED;
  border: 1px solid var(--amber);
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* ---------- Shift calendar picker (shift-calendar.html) ---------- */

.picker { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: #F2F6FB; }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

select.field {
  font: inherit;
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  max-width: 420px;
}

select.field:focus { outline: none; border-color: var(--navy); }

.months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 4px;
}

.month h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.grid .wd {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: 0.5px;
}

.grid .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--slate);
  border-radius: 50%;
}

.grid .day.on {
  color: var(--white);
  font-weight: 800;
}

.grid .day.today { box-shadow: inset 0 0 0 2px var(--navy); }
.grid .day.blank { visibility: hidden; }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding: 24px 20px 48px;
  text-align: center;
}

.foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.foot-links a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.foot-links a:hover { text-decoration: underline; }
.foot p { font-size: 12px; color: var(--slate); margin: 0 0 6px; }

@media (max-width: 520px) {
  .hero h1 { font-size: 26px; }
  h1 { font-size: 23px; }
  .card { padding: 22px; }
  .hero { padding: 30px 22px 26px; }
}
