:root {
  --ink: #17202a;
  --muted: #637083;
  --line: #dbe3ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --teal: #0c5b62;
  --teal-dark: #073f45;
  --gold: #b9904b;
  --navy: #1c3144;
  --shadow: 0 24px 70px rgba(16, 32, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open,
.site-header.light-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 35px rgba(23, 32, 42, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.75;
}

.nav-links,
.header-actions,
.hero-actions,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 650;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-button {
  color: inherit;
  background: transparent;
}

.solid-button {
  border-color: var(--gold);
  background: var(--gold);
  color: #111820;
}

.ghost-button:hover,
.solid-button:hover {
  transform: translateY(-1px);
}

.large {
  min-height: 52px;
  padding: 0 22px;
}

.on-dark {
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 138px clamp(20px, 6vw, 84px) 52px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/civic-oversight-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 17, 24, 0.91), rgba(5, 17, 24, 0.64) 42%, rgba(5, 17, 24, 0.1) 78%),
    linear-gradient(0deg, rgba(5, 17, 24, 0.72), transparent 36%);
}

.hero-content {
  position: relative;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 5.7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 650;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.35vw, 1.23rem);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  max-width: 630px;
  margin: 44px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-metrics div {
  padding: 18px 22px 0 0;
}

.hero-metrics dt {
  font-size: 1.65rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.alert-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(20px, 6vw, 84px);
  background: var(--navy);
  color: var(--white);
}

.alert-strip strong {
  color: var(--gold);
  min-width: max-content;
}

.section {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 6vw, 84px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(34px, 5vw, 76px);
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 228px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 6px;
  background: rgba(12, 91, 98, 0.1);
  color: var(--teal);
  font-weight: 850;
}

.service-card p,
.timeline p,
.case-status-card p,
.site-footer p {
  color: var(--muted);
}

.process-band {
  background: #edf3f4;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #cad8dc;
  background: var(--white);
}

.timeline article {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid #cad8dc;
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}

.resources-section {
  background: #f7f9fb;
}

.violation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.violation-grid article {
  min-height: 60px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.violation-grid h3 {
  margin: 0;
  color: #203040;
  font-size: 0.88rem;
  line-height: 1.22;
}

.remedy-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.remedy-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(12, 91, 98, 0.22);
  border-radius: 6px;
  background: rgba(12, 91, 98, 0.08);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.resource-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.resource-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 850;
}

.resource-directory a {
  display: grid;
  gap: 6px;
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 160ms ease, transform 160ms ease;
}

.resource-directory a:hover {
  border-color: rgba(12, 91, 98, 0.45);
  transform: translateY(-1px);
}

.resource-directory span {
  color: var(--muted);
  font-size: 0.92rem;
}

.records-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.records-heading {
  grid-column: 1 / -1;
  max-width: 760px;
}

.records-heading h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.records-heading p {
  color: var(--muted);
}

.records-group {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.records-group h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 0.94rem;
}

.records-group a {
  color: var(--teal-dark);
  font-size: 0.87rem;
  font-weight: 750;
  line-height: 1.24;
}

.records-group a:hover {
  text-decoration: underline;
}

.intake-page {
  padding-top: 78px;
}

.intake-route {
  min-height: calc(100vh - 78px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
  background: var(--white);
}

.intake-panel,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intake-panel {
  padding: clamp(26px, 4vw, 44px);
}

.intake-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #314150;
  font-weight: 750;
}

.date-field {
  max-width: 240px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e2;
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: #9d2b2b;
}

.danger {
  color: #9d2b2b;
}

.status-panel {
  padding: 0;
  overflow: hidden;
}

.admin-body {
  min-height: 100vh;
  background: #f2f5f7;
}

.admin-shell {
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0;
}

.admin-login,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
  max-width: 800px;
  margin: 8vh auto 0;
  padding: clamp(22px, 3vw, 34px);
}

.admin-login h1,
.admin-topbar h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.3vw, 2.3rem);
  line-height: 1.05;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.password-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.admin-panel {
  padding: clamp(18px, 3vw, 28px);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  min-height: 36px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.admin-tabs button.active {
  border-color: var(--gold);
  color: var(--ink);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px;
}

.settings-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.settings-card h2 {
  margin-bottom: 2px;
  font-size: 1.15rem;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.password-input {
  display: grid;
  grid-template-columns: 1fr auto;
}

.password-input input {
  border-radius: 6px 0 0 6px;
}

.password-input button {
  border: 1px solid #cfd9e2;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #eef3f5;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 0 10px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.user-row span,
.user-row small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-empty,
.intake-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
}

.intake-record {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.record-main small {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 850;
}

.record-main h2 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.record-main p {
  color: var(--muted);
  white-space: pre-wrap;
}

.record-details {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 0.82rem;
}

.record-details dt {
  color: var(--muted);
  text-transform: capitalize;
}

.record-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.panel-header {
  padding: 28px;
  background: var(--teal-dark);
  color: var(--white);
}

.panel-header .eyebrow {
  margin-bottom: 8px;
}

.check-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 28px;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.case-status-card {
  margin: 0 28px 28px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: #f4f7f8;
}

.case-status-card small,
.case-status-card strong {
  display: block;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 42px clamp(20px, 6vw, 84px);
  background: #071116;
  color: var(--white);
}

address {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.login-modal {
  width: min(94vw, 460px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.login-modal::backdrop {
  background: rgba(6, 15, 22, 0.68);
  backdrop-filter: blur(8px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 34px;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef2f5;
  cursor: pointer;
  font-size: 1.4rem;
}

.full {
  width: 100%;
}

.login-links {
  display: flex;
  justify-content: space-between;
  color: var(--teal);
  font-weight: 750;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.menu-open .nav-links,
  .site-header.menu-open .header-actions {
    position: absolute;
    left: 20px;
    right: 20px;
    display: grid;
    background: var(--white);
    color: var(--ink);
  }

  .site-header.menu-open .nav-links {
    top: 76px;
    gap: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
  }

  .site-header.menu-open .nav-links a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.menu-open .header-actions {
    top: 265px;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .intro-grid,
  .split-section,
  .site-footer,
  .admin-login,
  .intake-record,
  .password-panel,
  .admin-grid,
  .user-row,
  .resource-directory,
  .records-directory {
    grid-template-columns: 1fr;
  }

  .violation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-topbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 94vh;
    padding-top: 118px;
  }

  .hero-actions,
  .alert-strip,
  .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-metrics,
  .service-grid,
  .timeline,
  .violation-grid {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #cad8dc;
  }

  .timeline article:last-child {
    border-bottom: 0;
  }
}

.admin-menu {
  position: relative;
}

.menu-icon,
.square-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.menu-icon {
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.admin-menu-panel {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 5;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(23, 32, 42, 0.16);
}

.admin-menu-panel button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
}

.admin-menu-panel button:hover {
  background: #eef3f5;
}

.user-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.user-toolbar h2 {
  margin-bottom: 2px;
  font-size: 1.2rem;
}

.user-editor {
  margin-bottom: 12px;
}

.user-table-wrap {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.user-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.user-table th,
.user-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.user-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f6f7;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.user-table tr:hover td {
  background: #f8fafb;
}

.empty-cell {
  color: var(--muted);
  text-align: center !important;
}

.role-pill,
.disabled-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
}

.role-pill {
  background: rgba(12, 91, 98, 0.1);
  color: var(--teal-dark);
}

.disabled-pill {
  margin-left: 6px;
  background: #f6e8e8;
  color: #9d2b2b;
}

.profile-card {
  max-width: 680px;
}
