/* Municipal Support Services — Cityville-inspired civic layout.
   Brand red taken from the corporate trillium. No third-party CSS. */
:root {
  --red: #c8102e;
  --red-hot: #e10600;
  --red-dark: #8e0b20;
  --ink: #16181c;
  --ink-soft: #3a3f46;
  --muted: #5e6570;
  --line: #d9dde3;
  --paper: #f6f4f1;
  --white: #ffffff;
  --bar: #f3f3f3;
  --header: #ececec;
  --navy: #1b1f24;
  --navy-2: #252b33;
  --shadow: 0 10px 30px rgba(16, 18, 22, .12);
  --radius: 2px;
  --wrap: 1180px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: "Segoe UI Semibold", "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 650;
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; background: var(--red);
  color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { top: .5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Utility bar */
.util-bar {
  background: var(--bar);
  border-bottom: 1px solid #e4e4e4;
  font-size: .86rem;
  color: var(--ink-soft);
}
.util-bar__inner {
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; min-height: 42px;
}
.util-bar p { margin: 0; }
.util-bar a { color: inherit; text-decoration: none; }
.util-bar a:hover { color: var(--red); }
.util-bar .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin: 0 .7rem; vertical-align: middle;
}
.util-bar__note { font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--header) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ddd;
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand img { width: 168px; height: auto; }

.nav ul { list-style: none; display: flex; gap: .15rem; justify-content: center; }
.nav a {
  display: block; padding: .7rem .95rem; text-decoration: none;
  color: var(--ink); font-size: .78rem; letter-spacing: .08em;
  font-weight: 700; text-transform: uppercase;
}
.nav a:hover, .nav a.is-active { color: var(--red); }
.has-sub { position: relative; }
.has-sub > ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 260px; box-shadow: var(--shadow);
  flex-direction: column; padding: .4rem 0; border-top: 3px solid var(--red);
}
.has-sub:hover > ul, .has-sub:focus-within > ul { display: flex; }
.has-sub > ul a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem; text-decoration: none; font-weight: 700;
  letter-spacing: .04em; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; font-size: .92rem;
}
.btn-red { background: var(--red-hot); color: #fff; border-color: var(--red-hot); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.header-cta { white-space: nowrap; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  background-color: var(--navy);
  background-image: url("../img/photo-briefing.jpg");
  background-size: cover;
  background-position: center 42%;
  color: #fff;
  min-height: min(78vh, 720px);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,18,22,.58), rgba(16,18,22,.82)),
    radial-gradient(1200px 500px at 50% 10%, rgba(200,16,46,.18), transparent 55%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__watermark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(4rem, 14vw, 10rem); font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.06); text-align: center;
  pointer-events: none; line-height: .9; padding: 1rem;
}
.hero__inner { text-align: center; padding: 5rem 0 4rem; max-width: 820px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 0 1rem; }
.hero .lede { font-size: 1.08rem; color: #e8e8e8; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .45rem .9rem; margin: 1.2rem 0 0; color: #f0f0f0; font-size: .95rem;
}
.hero-list li::before { content: "• "; color: var(--red-hot); }

/* Page hero (interior) */
.page-hero {
  position: relative; isolation: isolate;
  background-color: var(--navy);
  background-size: cover;
  background-position: center 40%;
  color: #fff; padding: 3.2rem 0 2.6rem;
  border-bottom: 4px solid var(--red);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,18,22,.82), rgba(16,18,22,.55));
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero--mle { background-image: url("../img/photo-patrol.jpg"); }
.page-hero--security { background-image: url("../img/photo-static-security.jpg"); }
.page-hero--dispatch { background-image: url("../img/photo-dispatch.jpg"); }
.page-hero--about { background-image: url("../img/photo-office.jpg"); }
.page-hero--departments { background-image: url("../img/photo-patrol.jpg"); }
.page-hero--seasonal { background-image: url("../img/photo-field-team.jpg"); }
.page-hero h1 { color: #fff; margin: 0 0 .6rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-hero p { margin: 0; color: #d7dbe2; max-width: 46rem; }
.crumb { font-size: .82rem; color: #b7bec8; margin-bottom: .6rem; }
.crumb a { color: #fff; text-decoration: none; }

/* Sections */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.kicker {
  color: var(--red); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 800; margin: 0 0 .5rem;
}
.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.card--media { padding: 0 0 1.3rem; overflow: hidden; }
.card--media img {
  width: 100%; height: 190px; object-fit: cover; margin-bottom: .95rem;
  background: var(--navy);
}
.card--media h2, .card--media h3, .card--media p, .card--media a.more {
  padding-left: 1.4rem; padding-right: 1.4rem;
}
.card--media h2, .card--media h3 { margin-top: 0; }
.card h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }
.photo-frame {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-frame img {
  width: 100%; height: 280px; object-fit: cover;
}
.card a.more {
  display: inline-block; margin-top: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: .78rem;
  text-decoration: none; color: var(--red);
}
.values { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.pill {
  border: 1px solid var(--line); padding: .35rem .8rem; font-size: .82rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  background: var(--navy); color: #fff; padding: 2rem 0;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.15rem; color: #fff; }
.stat span { color: #c5ccd6; font-size: .9rem; }

.split {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start;
}
.callout {
  background: var(--navy); color: #fff; padding: 1.6rem 1.5rem;
}
.callout h2, .callout h3 { color: #fff; }
.callout a { color: #fff; }
.phone-xl {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none; color: var(--ink);
}
.callout .phone-xl { color: #fff; }

.muni-list {
  display: flex; flex-wrap: wrap; gap: .5rem; list-style: none;
}
.muni-list li {
  background: #fff; border: 1px solid var(--line); padding: .4rem .7rem; font-size: .9rem;
}

.form {
  display: grid; gap: .9rem; max-width: 640px;
}
label { font-weight: 650; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: .7rem .75rem; border: 1px solid #c9ced6;
  font: inherit; background: #fff; border-radius: var(--radius);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); }
.alert {
  padding: .8rem 1rem; border-left: 4px solid var(--red); background: #fff6f6;
}
.alert.ok { border-color: #1b7a3d; background: #f1faf4; }

.site-footer {
  background: var(--navy); color: #c9d0d8; padding: 3rem 0 1.2rem;
  font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h2 {
  color: #fff; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 .8rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 0 0 .35rem; }
.site-footer a { color: #e8edf3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-mark { width: 56px; height: 56px; margin-bottom: .6rem; }
.footer-name { color: #fff; font-weight: 800; margin: 0; }
.footer-tag { color: #e2a0aa; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-911 { margin-top: 1rem; font-size: .88rem; }
.footer-base {
  border-top: 1px solid #333a44; margin-top: 2rem; padding-top: 1rem;
  font-size: .82rem; color: #8b93a0;
}

@media (max-width: 980px) {
  .grid-3, .grid-4, .footer-grid, .split, .stat-row { grid-template-columns: 1fr 1fr; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .4rem 0 1rem; }
  .has-sub > ul { position: static; box-shadow: none; border-top: 0; display: block; padding-left: .8rem; }
  .header-cta { display: none; }
  .grid-3, .grid-2, .grid-4, .footer-grid, .split, .stat-row, .site-header__inner {
    grid-template-columns: 1fr;
  }
  .util-bar__inner { flex-direction: column; align-items: flex-start; padding: .45rem 0; }
}
