/* SafeAir — brand tokens (from logo: navy + signal red) */
:root {
  --navy: #142a6b;
  --navy-deep: #0b1a47;
  --navy-ink: #0e1d3f;
  --red: #d7232b;
  --red-dark: #b51b22;
  --sky: #2f6fd6;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 29, 63, .08);
  --wrap: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .8em;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.6em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #c9d3ee; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span + span { margin-left: 18px; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy-ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--red); }
.nav .btn { color: #fff; padding: .7em 1.3em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(47,111,214,.45), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1d3f96 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: #ff5a60; }
.hero p { font-size: 1.15rem; color: #d4dcf3; max-width: 620px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-routes { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 56px; color: #c9d3ee; font-size: .9rem; }
.hero-badges div { display: flex; align-items: center; gap: 10px; }
.hero-badges svg { flex: none; }
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: 70px; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,29,63,.12); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff;
}
.card .sic { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-panel {
  position: relative; border-radius: 20px; padding: 40px; color: #fff; overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.about-panel::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08); box-shadow: 0 0 0 30px rgba(255,255,255,.03);
}
.about-panel h3 { color: #fff; }
.about-panel p { color: #d4dcf3; }
.stat { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
.stat small { font-size: 1rem; font-weight: 600; color: #ff5a60; margin-left: 4px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Process */
.steps { counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: #e8ecf6; position: absolute; top: 10px; right: 18px;
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Who we serve */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: .7em 1.2em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--navy-ink); font-size: .95rem;
}

/* Commitments band */
.band { background: var(--navy-deep); color: #d4dcf3; }
.band h2, .band h3 { color: #fff; }
.band .commit { border-left: 3px solid var(--red); padding-left: 18px; }
.band .commit p { margin: 0; font-size: .95rem; }

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--red) 0%, #a5141b 100%); color: #fff; border-radius: 22px;
  padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; color: #ffe1e2; }
.cta .btn { background: #fff; color: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-list .ci {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
}
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy-ink); }
.contact-list a { text-decoration: none; }

.form { background: #fff; border-radius: 18px; padding: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy-ink); }
.form .field { margin-bottom: 16px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: .75em .9em; border: 1px solid #cfd6e4; border-radius: 10px; background: #fbfcfe; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(47,111,214,.35); border-color: var(--sky); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e7f6ec; color: #17673a; }
.form-status.err { display: block; background: #fdeaea; color: #9b1c1f; }

/* Footer */
.footer { background: var(--navy-ink); color: #aab5d3; padding: 64px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { color: #dfe5f5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem;
}
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--navy) 0 45%, #c9ced9 45% 55%, var(--red) 55% 100%); }

/* Simple content pages (privacy, 404) */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; padding: 70px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .tb-right { display: none; }
  .brand img { height: 40px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 96px; }
  .cta { padding: 36px 26px; }
  .form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}