/* District45 Public Safety Solutions — site styles */
:root {
  --navy: #0a1628;
  --navy-mid: #12233d;
  --navy-soft: #1a3050;
  --red: #b23b3b;
  --red-hover: #9a3232;
  --cream: #f1ece4;
  --cream-dark: #e4ddd2;
  --ink: #0a1628;
  --muted: #5a6575;
  --white: #ffffff;
  --line: rgba(10, 22, 40, 0.12);
  --line-light: rgba(241, 236, 228, 0.18);
  --shadow: 0 8px 28px rgba(10, 22, 40, 0.08);
  --radius: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--red); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-dark {
  background: var(--navy);
  color: var(--cream);
}
.section-dark a { color: #f3b4b4; }
.section-dark a:hover { color: var(--cream); }
.section-navy-soft { background: var(--navy-mid); color: var(--cream); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-dark .eyebrow { color: #e08a8a; }
.lede { font-size: 1.15rem; max-width: 40rem; color: var(--muted); }
.section-dark .lede { color: rgba(241,236,228,0.78); }
.muted { color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack > * + * { margin-top: 1.25rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  min-height: 5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  flex-shrink: 0;
}
.brand:hover { color: var(--cream); }
.brand-logo {
  height: 68px;
  width: auto;
  max-width: min(240px, 48vw);
  object-fit: contain;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--cream);
  border-radius: 6px;
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nav-toggle-bars {
  width: 1.1rem; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--line-light);
  padding: 0.75rem 1rem 1rem;
}
.site-nav.open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: rgba(241,236,228,0.08);
  color: var(--cream);
}
.site-nav .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  text-align: center;
  margin-top: 0.4rem;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--red-hover); }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .header-inner { position: relative; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .site-nav a { padding: 0.4rem 0.55rem; font-size: 0.88rem; }
  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.35rem;
    padding: 0.45rem 0.85rem !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-primary {
  background: var(--red);
  color: var(--white) !important;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white) !important; }
.btn-secondary {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--cream) !important; }
.section-dark .btn-secondary {
  color: var(--cream) !important;
  border-color: var(--cream);
}
.section-dark .btn-secondary:hover {
  background: var(--cream);
  color: var(--navy) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--cream) !important;
  border-color: var(--line-light);
}
.btn-ghost:hover { background: rgba(241,236,228,0.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding: 3.25rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--red);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; }
}
.hero h1 { color: var(--cream); margin-bottom: 0.75rem; }
.hero-mark {
  background: var(--navy-mid);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.hero-mark img {
  margin: 0 auto;
  max-height: 220px;
  width: auto;
  border-radius: 8px;
}

/* Cards / grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.card-dark {
  background: var(--navy-mid);
  border-color: var(--line-light);
  color: var(--cream);
  box-shadow: none;
}
.card h3 { margin-bottom: 0.4rem; }
.card .icon-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.card-dark .icon-label { color: #e08a8a; }
.bot-wall .card { min-height: 100%; }

.pack-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pack-card .pack-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.pack-card p { flex-grow: 1; color: var(--muted); margin-bottom: 0; }
.pack-card .btn { align-self: flex-start; margin-top: 0.5rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.35rem; }

/* Monday packet */
.packet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.packet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
}
.packet-tab {
  background: transparent;
  border: 1px solid var(--line-light);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.packet-tab[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
}
.packet-tab:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.packet-panel { padding: 1.35rem 1.4rem 1.5rem; display: none; }
.packet-panel.active { display: block; }
.packet-sample {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--navy);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.stat-row {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat span { font-size: 0.92rem; color: var(--muted); }

/* Pricing */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table .amt {
  font-weight: 800;
  white-space: nowrap;
  color: var(--navy);
}
.price-cards { display: grid; gap: 1rem; }
@media (min-width: 720px) {
  .price-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .price-cards { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(178,59,59,0.15);
}
.price-card .amt {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.35rem 0 0.75rem;
}
.price-card .amt small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.price-card ul { flex-grow: 1; }
.note-box {
  background: var(--cream-dark);
  border-left: 4px solid var(--red);
  padding: 1rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1.5rem;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--red);
  font-weight: 800;
}
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 0.65rem 0 0.2rem; color: var(--muted); }

/* Forms */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 40rem;
}
.form-row { margin-bottom: 1rem; }
.form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  background: var(--cream);
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: var(--white);
}
.form .check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
}
.form .check input {
  width: auto;
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.form .check label { font-weight: 500; margin: 0; }

/* Page hero (inner) */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 2.5rem 0 2.75rem;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lede { color: rgba(241,236,228,0.8); margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.65rem; height: 0.65rem;
  background: var(--red);
  border-radius: 2px;
}
.hard-no {
  background: #f8ecec;
  border: 1px solid #e5c0c0;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.hard-no h3 { color: var(--red); margin-bottom: 0.4rem; }

.cta-band {
  background: var(--navy);
  color: var(--cream);
  padding: 2.75rem 0;
  border-top: 4px solid var(--red);
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band .lede { margin-inline: auto; color: rgba(241,236,228,0.8); }

/* Footer */
.site-footer {
  background: #070f1c;
  color: rgba(241,236,228,0.75);
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
}
.site-footer a:hover { color: #e08a8a; text-decoration: underline; }
.footer-brand img {
  height: 56px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.footer-col h4 {
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(241,236,228,0.12);
  font-size: 0.85rem;
  line-height: 1.6;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 2rem 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; }
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  color: var(--navy);
}
.card-dark .tag {
  background: rgba(241,236,228,0.08);
  border-color: var(--line-light);
  color: var(--cream);
}

@media (max-width: 600px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td {
    display: block; width: 100%;
  }
  .price-table tr {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
  }
  .price-table td {
    border: 0;
    padding: 0.25rem 1.1rem;
  }
  .price-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}


/* Four-up pack grids */
.grid-4 {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Order form */
.service-checks legend {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.check-grid {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .check-grid { grid-template-columns: repeat(2, 1fr); }
}
.form-error {
  color: var(--red);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}
.order-note { max-width: 40rem; }
.order-success { margin-top: 2rem; max-width: 40rem; }
.order-summary { margin-top: 0.75rem; }
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
