/* =========================================================
   Global Reset
   ========================================================= */

/* Remove default margin */
* {
  margin: 0;
}

html,
body {
  height: 100%;
  background: #f8f7f4;
}

body {
  background: #f8f7f4;
  min-height: 90vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin-top: 0;
}

/* Anchor reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Improve text wrapping */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

.quick-navbar {
  margin-top: 0;
}

/* Set your hero image here (generated banner) */
:root{
  --hero-image: url("../images/victim-witness-hero.png");
  --navy: #0f2a3a;
  --gold: #c9a24a;
  --sand: #f4efe8;
  --text: #14212b;
}

/* ---------------------------------
   Sub Page Header
---------------------------------- */
.vw-sub-hero {
  background:
    linear-gradient(rgba(15,42,58,0.85), rgba(15,42,58,0.85)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.vw-sub-inner {
  max-width: 900px;
  margin: 0 auto;
}

.vw-sub-hero h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #fff;
}

.vw-sub-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.vw-sub-hero strong {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
}

/* =========================================================
   Crime Victim Statistics Table (Reusable)
========================================================= */

.vw-stats {
  max-width: 900px;
  margin: 3rem auto;
}

.vw-stats h2 {
  font-size: 1.35rem;
  margin: 2rem auto 0.75rem auto;
  color: var(--navy);
  border-bottom: 4px solid var(--gold);
  padding-left: 0.75rem;
  text-align: center;
  width: fit-content;
}

.vw-stats-intro {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

/* Table wrapper for mobile scroll */
.vw-stats-table-wrapper {
  overflow-x: auto;
}

/* Table base */
.vw-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e0d8;
}

/* Headings */
.vw-stats-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--sand);
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

/* Body cells */
.vw-stats-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

/* Right-align percentages */
.vw-stats-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* Zebra striping */
.vw-stats-table tbody tr:nth-child(even) {
  background: #faf8f4;
}

/* Hover affordance */
.vw-stats-table tbody tr:hover {
  background: #f1ede6;
}

/* ---------------------------------------------------------
   Responsive Adjustments
--------------------------------------------------------- */
/* =========================================================
   RESPONSIVE MEDIA QUERIES — SUB HERO & STATS
========================================================= */

/* Small phones */
@media (max-width: 420px){
  .vw-sub-hero{
    padding: 3.5rem 1.25rem;
  }

  .vw-sub-hero h1{
    font-size: 1.6rem;
  }

  .vw-sub-hero p{
    font-size: 1rem;
  }

  .vw-stats{
    margin: 1.75rem auto;
    padding: 0 0.5rem;
  }

  .vw-stats h2{
    font-size: 1.15rem;
    border-bottom-width: 3px;
  }
}

/* Phones */
@media (max-width: 600px){
  .vw-sub-hero{
    padding: 4rem 1.5rem;
  }

  .vw-sub-hero h1{
    font-size: 1.75rem;
  }

  .vw-sub-hero p{
    font-size: 1.05rem;
  }

  .vw-stats{
    margin: 2rem auto;
  }

  .vw-stats h2{
    font-size: 1.2rem;
  }

  .vw-stats-table th,
  .vw-stats-table td{
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px){
  .vw-sub-hero{
    padding: 4.5rem 2rem;
  }

  .vw-sub-hero h1{
    font-size: 2rem;
  }

  .vw-sub-hero p{
    font-size: 1.1rem;
  }

  .vw-stats{
    margin: 2.5rem auto;
  }
}

/* Large desktops */
@media (min-width: 1200px){
  .vw-sub-hero{
    padding: 5.5rem 2rem;
  }

  .vw-sub-hero h1{
    font-size: 2.25rem;
  }

  .vw-stats{
    max-width: 960px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .vw-stats-table tbody tr:hover{
    background: inherit;
  }
}
