/* Integrated Life Safety — full-site additions (load after styles.css) */

/* ---------- Navigation ---------- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  font-weight: 600; font-size: .92rem; color: var(--navy); text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav > a:hover { background: var(--ice); }
.main-nav > a[aria-current="page"] { color: var(--red); background: var(--ice); }

/* Login dropdown (works without JS) */
.login-menu { position: relative; }
.login-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .88rem; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; white-space: nowrap;
}
.login-menu summary::-webkit-details-marker { display: none; }
.login-menu summary svg { width: 16px; height: 16px; }
.login-menu[open] summary { border-color: var(--navy); }
.login-menu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 280px; z-index: 70;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
}
.login-menu .menu a {
  display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center;
  padding: 10px; border-radius: 8px; text-decoration: none;
}
.login-menu .menu a:hover { background: var(--ice); }
.login-menu .mi {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}
.login-menu .menu a:nth-of-type(2) .mi { background: var(--red); }
.login-menu .menu a:nth-of-type(3) .mi { background: var(--navy-700); }
.login-menu .mi svg { width: 18px; height: 18px; }
.login-menu .menu b { display: block; color: var(--navy); font-size: .92rem; }
.login-menu .menu small { color: var(--muted); font-size: .78rem; }

.site-header .btn { white-space: nowrap; }
@media (max-width: 1120px) {
  .header-phone span { display: none; }
}

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Home hero ---------- */
.hero-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.92); }
.hero-points svg { width: 20px; height: 20px; color: var(--red); flex: none; }

/* ---------- Campaign tiles (mirror the printed ads) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile {
  position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start;
  border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--white);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  min-height: 210px; transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile::after {
  content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px;
  border-radius: 50%; border: 28px solid rgba(220,35,35,.2); pointer-events: none;
}
.tile .tag {
  justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); padding: 5px 10px; border-radius: 6px;
}
.tile h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.02; margin: 4px 0 0;
}
.tile h3 .red { color: #FF4A4A; }
.tile p { margin: 0; color: rgba(255,255,255,.84); max-width: 30em; position: relative; z-index: 1; }
.tile .go {
  font-family: var(--display); font-weight: 800; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .04em; margin-top: 6px;
}
.tile .go::after { content: " \2192"; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 8px; align-content: start;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.card .ci {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red); color: var(--white); margin-bottom: 6px;
}
.card:nth-child(even) .ci { background: var(--navy); }
.card .ci svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.card ul li { padding-left: 18px; position: relative; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--red);
}
.card .more { font-weight: 700; font-size: .88rem; color: var(--red); margin-top: 4px; }
.card .more::after { content: " \2192"; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.steps li {
  position: relative; padding: 22px 22px 22px 76px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white);
  font-family: var(--display); font-weight: 900;
}
.steps li:first-child::before { background: var(--red); }
.steps h3 { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1rem; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

.alt { background: var(--ice); }
.quotes.three { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.quotes.three .quote { background: var(--ice); }

/* ---------- Inner page header ---------- */
.page-hero {
  color: var(--white); padding-block: 44px 40px;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(80,140,220,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy) 50%, var(--navy-900));
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; margin: 0 0 10px;
}
.page-hero h1 .red { color: var(--red); }
.page-hero p { margin: 0; max-width: 40em; color: rgba(255,255,255,.86); font-size: 1.08rem; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.prose h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--navy);
  font-size: 1.5rem; line-height: 1.1; margin: 0 0 12px;
}
.prose h2 .red { color: var(--red); }
.prose p { margin: 0 0 12px; color: #33404F; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pillar { background: var(--ice); border-radius: 12px; padding: 18px; }
.pillar b {
  display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  color: var(--navy); letter-spacing: .04em; margin-bottom: 4px;
}
.pillar b::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 8px; }
.pillar span { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 56px 16px 18px; position: relative;
  font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--ice); color: var(--red);
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 800;
}
.faq details[open] summary::after { content: "\2013"; background: var(--red); color: var(--white); }
.faq details p { margin: 0; padding: 0 18px 16px; color: #33404F; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.contact-list .ci {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ice); color: var(--red);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--navy); }
.contact-list a { color: var(--ink); }
.login-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 26px; }
.login-cards a { display: block; text-decoration: none; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.login-cards a:hover { border-color: var(--navy); }
.login-cards b { display: block; color: var(--navy); }
.login-cards small { color: var(--muted); }
.form-card.on-light { box-shadow: var(--shadow); border: 1px solid var(--line); }
.lead-form .full { grid-column: 1 / -1; }

/* ---------- Footer (full site) ---------- */
.site-footer.full { padding-block: 44px 24px; }
.site-footer.full .wrap { display: block; }
.site-footer.full .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer.full h4 {
  color: var(--white); font-family: var(--display); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 12px;
}
.site-footer.full ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer.full .logo-white {
  display: inline-block; background: var(--white); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px;
}
.site-footer.full .logo-white img { height: 28px; width: auto; }
.site-footer.full .bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- ILS Ops showcase ---------- */
.ops { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; }
.ops::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 100% 0%, rgba(80,140,220,.28), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(220,35,35,.18), transparent 60%);
}
.ops .wrap { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.ops .eyebrow { margin-bottom: 16px; }
.ops h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1; margin: 0 0 14px;
}
.ops h2 .red { color: var(--red); }
.ops .lede { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: 0 0 20px; }
.ops-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ops-feats li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.ops-feats .fi {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #FF5A5A;
}
.ops-feats .fi svg { width: 18px; height: 18px; }
.ops-feats b { display: block; font-size: .95rem; }
.ops-feats span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Mock app window (illustration only) */
.app-mock {
  background: #F4F7FB; color: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E3E9F1; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D2DE; }
.app-bar i:first-child { background: #FF5F57; } .app-bar i:nth-child(2) { background: #FEBC2E; } .app-bar i:nth-child(3) { background: #28C840; }
.app-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: var(--white); padding: 3px 10px; border-radius: 6px; }
.app-body { display: grid; grid-template-columns: 52px 1fr; min-height: 330px; }
.app-side { background: var(--navy); display: grid; align-content: start; gap: 10px; padding: 14px 0; justify-items: center; }
.app-side b { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.14); }
.app-side b:first-child { background: var(--red); }
.app-main { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.app-main h5 { grid-column: 1 / -1; margin: 0; font-family: var(--display); font-size: .95rem; color: var(--navy); }
.app-main h5 small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: .75rem; margin-left: 6px; }
.app-card { background: var(--white); border-radius: 10px; padding: 12px; border: 1px solid #E2E8F0; }
.app-card h6 { margin: 0 0 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ring {
  --p: 96; width: 86px; height: 86px; border-radius: 50%; margin: 2px auto 6px;
  background: conic-gradient(#1E9E57 calc(var(--p) * 1%), #E5EAF0 0);
  display: grid; place-items: center;
}
.ring::after { content: ""; grid-area: 1 / 1; width: 64px; height: 64px; border-radius: 50%; background: var(--white); }
.ring b { grid-area: 1 / 1; position: relative; z-index: 1; font-family: var(--display); font-weight: 900; color: var(--navy); font-size: 1.15rem; }
.app-card .cap { text-align: center; font-size: .75rem; color: var(--muted); }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .78rem; }
.app-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.pill { font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: #DDF3E6; color: #187A44; }
.pill.due { background: #FFF1D6; color: #9A6200; }
.pill.open { background: #FDE2E2; color: #B81B1B; }
.pill.info { background: var(--ice); color: var(--navy); }
.app-card.wide { grid-column: 1 / -1; }
.mock-note { font-size: .75rem; color: rgba(255,255,255,.5); text-align: right; margin-top: 10px; }

/* Featured (wide) service card */
.card.feature { grid-column: span 2; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--white); border: 0; }
.card.feature h3 { color: var(--white); }
.card.feature p { color: rgba(255,255,255,.82); }
.card.feature ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.card.feature .ci { background: var(--red); }
.card.ops-card { background: var(--ice); border-color: transparent; }
.card.ops-card .ci { background: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cards, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .site-footer.full .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(3,35,74,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px; }
  .main-nav .login-menu summary { width: 100%; justify-content: center; margin-top: 8px; }
  .main-nav .login-menu .menu { position: static; width: auto; box-shadow: none; margin-top: 8px; }
}
@media (max-width: 860px) {
  .tiles, .split, .steps, .quotes.three, .ops .wrap { grid-template-columns: 1fr; }
  .app-mock { transform: none; }
}
@media (max-width: 640px) {
  .cards, .cards.three, .pillars, .login-cards, .ops-feats { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; }
  .card.feature ul { grid-template-columns: 1fr; }
  .app-main { grid-template-columns: 1fr; }
  .site-footer.full .cols { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 22px; }
  .page-hero { padding-block: 32px 28px; }
  .header-actions .btn-sm { display: none; }
}
