/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1d2433;
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: #b3261e; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: #0c1626; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
em { font-style: italic; color: #2b3447; }
strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: #4d5670; }
.small { font-size: 0.9rem; }

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: #0c1626; color: #fff;
  padding: 8px 14px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e6e8ee;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #0c1626; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: #b3261e; color: #fff;
  font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 2px 6px rgba(179, 38, 30, 0.35);
}
.logo-text { font-size: 1.05rem; }

.primary-nav { display: flex; gap: 22px; }
.primary-nav a { color: #1d2433; font-weight: 500; font-size: 0.95rem; }
.primary-nav a:hover { color: #b3261e; text-decoration: none; }

.cta-emergency {
  background: #b3261e; color: #fff !important;
  padding: 9px 16px; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(179, 38, 30, 0.3);
  transition: transform .15s, background .15s;
}
.cta-emergency:hover { background: #921e18; text-decoration: none; transform: translateY(-1px); }

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

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(179,38,30,0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(31,64,109,0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f2f4f8 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid #e6e8ee;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  background: #fff1f0;
  color: #921e18;
  font-weight: 600; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid #f2c2bf;
  margin-bottom: 18px;
}
.lede { font-size: 1.12rem; color: #2b3447; max-width: 720px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s, color .15s;
  font-family: inherit;
}
.btn-primary { background: #b3261e; color: #fff; box-shadow: 0 4px 14px rgba(179,38,30,0.25); }
.btn-primary:hover { background: #921e18; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #0c1626; border-color: #cfd4dd; }
.btn-ghost:hover { background: #fff; border-color: #0c1626; text-decoration: none; }
.btn-large { padding: 16px 28px; font-size: 1.05rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e6e8ee;
}
.stat strong {
  display: block; font-size: 1.75rem; color: #b3261e; line-height: 1.2;
  font-weight: 800; letter-spacing: -0.02em;
}
.stat span { color: #4d5670; font-size: 0.92rem; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 56px 0 48px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid #e6e8ee; }
.section-alt { background: #f4f6fa; }
.section-lede { font-size: 1.05rem; color: #2b3447; max-width: 780px; margin-bottom: 32px; }

.grid-2 {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px;
}
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

.bullet-list { padding-left: 20px; margin: 0 0 1rem; }
.bullet-list li { margin-bottom: 6px; }
.bullet-list.ordered { list-style: decimal; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e6e8ee;
  background: #fff;
}
.callout h3 { margin-top: 0; }
.callout-info { background: #eef4fb; border-color: #cfdcec; }
.callout-info h3 { color: #1f406d; }
.callout-warn { background: #fff5e6; border-color: #f3d59a; margin-top: 36px; }
.callout-warn h3 { color: #8a4b0a; }

/* ---------- Signs ---------- */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .signs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .signs-grid { grid-template-columns: 1fr; } }

.sign-card {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sign-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,30,60,0.06); border-color: #cfd4dd; }
.sign-icon { font-size: 1.8rem; margin-bottom: 8px; }
.sign-card-alert { border-left: 4px solid #b3261e; }
.sign-card-alert h3 { color: #921e18; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  counter-reset: stage;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, #43a35a 0%, #d4a017 30%, #d96b1d 65%, #b3261e 100%);
  border-radius: 2px;
}
.t-stage {
  position: relative;
  padding-left: 64px;
  margin-bottom: 28px;
}
.t-stage::before {
  content: '';
  position: absolute;
  left: 12px; top: 4px;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid currentColor;
  box-shadow: 0 0 0 4px rgba(255,255,255,1);
}
.t-green { color: #2f7a3e; }
.t-yellow { color: #b88513; }
.t-orange { color: #c05818; }
.t-red { color: #b3261e; }

.t-time {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: currentColor;
}
.t-body {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 22px 24px;
  color: #1d2433;
}
.t-body h3 { color: #0c1626; }
.t-action {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid currentColor;
  background: #f7f9fc;
  border-radius: 6px;
  color: #1d2433;
}
.t-red .t-body { border-color: #f2c2bf; background: #fff7f6; }
.t-orange .t-body { border-color: #f4d2bd; }
.t-yellow .t-body { border-color: #f1e2bd; }
.footnote { margin-top: 8px; }

/* ---------- Self-check form ---------- */
.check-form {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15,30,60,0.04);
}
.check-form fieldset {
  border: none; padding: 0; margin: 0 0 24px;
}
.check-form legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0c1626;
  margin-bottom: 14px;
}
.legend-note { color: #b3261e; font-weight: 600; font-size: 0.9rem; margin-left: 6px; }

.check-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .12s;
  border: 1px solid transparent;
}
.check-row:hover { background: #f4f6fa; }
.check-row input { margin-top: 4px; transform: scale(1.2); accent-color: #b3261e; }
.check-row.red { background: #fff7f6; border-color: #f7d8d4; }
.check-row.red:hover { background: #ffeceb; }

#evaluateBtn { margin-right: 10px; margin-top: 10px; }
#resetBtn { margin-top: 10px; }

.result-box {
  margin-top: 28px;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e6e8ee;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15,30,60,0.04);
}
.result-emergency { border-color: #b3261e; background: #fff5f4; }
.result-emergency .result-headline { color: #921e18; }
.result-urgent { border-color: #d4a017; background: #fff9eb; }
.result-urgent .result-headline { color: #8a4b0a; }
.result-monitor { border-color: #43a35a; background: #f1faf3; }
.result-monitor .result-headline { color: #1f6132; }
.result-empty { border-color: #cfd4dd; background: #f7f9fc; }
.result-headline { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }
.result-actions { margin-top: 12px; }
.result-actions a { color: #b3261e; font-weight: 600; }

/* ---------- Action grid ---------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 820px) { .action-grid { grid-template-columns: 1fr; } }
.action-card {
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e6e8ee;
}
.action-numbers { font-size: 1.05rem; }
.action-emerg { border-top: 5px solid #b3261e; }
.action-emerg h3 { color: #921e18; }
.action-urgent { border-top: 5px solid #d4a017; }
.action-urgent h3 { color: #8a4b0a; }
.action-tell { border-top: 5px solid #1f406d; }
.action-tell h3 { color: #1f406d; }
.action-while { border-top: 5px solid #2f7a3e; }
.action-while h3 { color: #1f6132; }

/* ---------- Resources ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .resources-grid { grid-template-columns: 1fr; } }
.res-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 20px;
  color: #0c1626 !important;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.res-card:hover { transform: translateY(-2px); border-color: #b3261e; text-decoration: none; box-shadow: 0 6px 18px rgba(15,30,60,0.06); }
.res-card strong { display: block; color: #b3261e; margin-bottom: 6px; }
.res-card span { color: #4d5670; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c1626;
  color: #c4cad8;
  padding: 40px 0;
}
.site-footer .disclaimer { color: #fff; max-width: 820px; }
.site-footer .muted { color: #8a93a7; }
.footer-inner { padding-top: 0; }
