/* Integrated Life Safety — landing page styles */
:root {
  --navy: #03234A;
  --navy-900: #01152E;
  --navy-700: #0A3466;
  --red: #DC2323;
  --red-700: #B81B1B;
  --ice: #EAF2FB;
  --ink: #15202E;
  --muted: #5A6778;
  --line: #DCE3EC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(3, 35, 74, .14);
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.logo img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.portal-link {
  font-size: .875rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 8px 10px; border-radius: 8px;
}
.portal-link:hover { color: var(--navy); background: var(--ice); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; font-size: .9rem;
  padding: 14px 22px; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(220,35,35,.35); }
.btn-red:hover { background: var(--red-700); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(80,140,220,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy) 45%, var(--navy-900) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-block: 56px 64px;
}
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); padding-bottom: 10px; margin-bottom: 18px;
  border-bottom: 3px solid var(--red);
}
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: .98; letter-spacing: -.01em;
  margin: 0 0 18px;
}
.hero h1 .red { color: var(--red); display: block; }
.hero h1 .big { font-size: 1.35em; }
.date-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: var(--white); border-radius: 8px;
  font-family: var(--display); font-weight: 900; font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  padding: 10px 18px; margin-bottom: 18px;
}
.date-badge svg { width: 1.2em; height: 1.2em; }
.hero-lede { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 34em; margin: 0 0 8px; }
.hero-q { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.countdown {
  display: flex; gap: 10px; margin-top: 28px; align-items: stretch; flex-wrap: wrap;
}
.countdown .unit {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 10px 14px; min-width: 78px; text-align: center;
}
.countdown .num { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; }
.countdown .lbl { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.countdown .note { align-self: center; font-size: .9rem; opacity: .85; max-width: 14em; }

/* ---------- Lead form card ---------- */
.form-card {
  scroll-margin-top: 84px;
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden;
}
.form-card-head { background: var(--red); color: var(--white); padding: 18px 22px; }
.form-card-head .kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9;
}
.form-card-head h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 1.35rem; line-height: 1.1; margin: 4px 0 0;
}
.lead-form { padding: 20px 22px 22px; display: grid; gap: 12px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #FBFCFE;
  width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--navy); background: var(--white);
  box-shadow: 0 0 0 3px rgba(3,35,74,.12);
}
.lead-form textarea { resize: vertical; min-height: 64px; }
.form-fine { font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }
.form-success { padding: 28px 22px; text-align: center; display: none; }
.form-success h3 { font-family: var(--display); color: var(--navy); margin: 8px 0; }
.form-success svg { width: 48px; height: 48px; color: #1E9E57; margin-inline: auto; }
.form-card.sent .lead-form { display: none; }
.form-card.sent .form-success { display: block; }

/* ---------- Sections ---------- */
section { padding-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05; margin: 0;
}
.section-head h2 .red { color: var(--red); }
.section-head p { margin: 0; color: var(--muted); max-width: 30em; }

/* Numbered five-up grid */
.five {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.five li {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 18px 20px; box-shadow: 0 2px 0 rgba(3,35,74,.04);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.five li:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.five .n {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--white);
  background: var(--red); clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
  padding-right: 6px; margin-bottom: 14px;
}
.five li:nth-child(even) .n { background: var(--navy); }
.five .ico {
  position: absolute; top: 18px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--ice); color: var(--red); display: grid; place-items: center;
}
.five .ico svg { width: 20px; height: 20px; }
.five h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: .95rem; line-height: 1.2; color: var(--navy); margin: 0 0 6px;
}
.five p { margin: 0; font-size: .9rem; color: var(--muted); }

/* Proof strip */
.proof { background: var(--ice); }
.proof .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 1px; }
.accred { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.accred span {
  font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .06em;
  color: var(--navy); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
}
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 20px; margin: 0;
  border-left: 4px solid var(--red);
}
.quote blockquote { margin: 0 0 12px; font-size: .95rem; }
.quote figcaption { font-size: .82rem; color: var(--muted); }
.quote figcaption b { color: var(--navy); }

/* Final CTA band */
.cta-band { background: var(--navy); color: var(--white); padding-block: 44px; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0; line-height: 1.1;
}
.cta-band p { margin: 6px 0 0; opacity: .85; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: .875rem; padding-block: 28px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .tagline { font-family: var(--display); font-weight: 700; letter-spacing: .1em; font-size: .75rem; color: var(--white); }
.site-footer .tagline i { color: var(--red); font-style: normal; padding-inline: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Mobile sticky action bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .five { grid-template-columns: repeat(3, 1fr); }
  .proof .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 44px; }
  .portal-link { display: none; }
}
@media (max-width: 640px) {
  section { padding-block: 44px; }
  .site-header .wrap { height: 60px; }
  .logo img { height: 30px; }
  .header-phone span { display: none; }
  .header-actions .btn { display: none; }
  .five { grid-template-columns: 1fr; gap: 10px; }
  .five li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .five .n { margin: 0; grid-row: span 2; }
  .five .ico { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .countdown .unit { min-width: 64px; padding: 8px 10px; }
  .countdown .num { font-size: 1.4rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(3,35,74,.12);
  }
  .mobile-bar .btn { padding: 12px 10px; font-size: .8rem; }
  .mobile-bar .call { background: var(--navy); color: var(--white); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .five li { transition: none; }
}
