/* ===== WISCONSIN DV FATALITY REVIEW INITIATIVE ===== */
/* Color palette matching toolkit/presentation */

:root {
  --navy: #1B2A4A;
  --navy-deep: #131E35;
  --teal: #1A6B5C;
  --teal-light: #2A8C7A;
  --teal-pale: #E8F4F0;
  --sand: #F5F0E8;
  --cream: #FAF8F4;
  --white: #FFFFFF;
  --dark: #1E1E2E;
  --muted: #6B7280;
  --muted-light: #9CA3AF;
  --border: #E5E7EB;
  --link: #1A6B5C;
  --link-hover: #2A8C7A;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1.25rem; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #B8C5D6; }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }

/* ===== NAVIGATION ===== */
.nav {
  background: var(--navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--teal);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo {
  height: 40px;
  width: auto;
  max-width: 180px;
}

.nav__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}

.nav__title span {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  color: var(--muted-light);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 0.5rem 1rem;
  color: #B8C5D6;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1E3A5F 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,107,92,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero p {
  color: #B8C5D6;
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s;
  text-decoration: none;
}

.hero__cta:hover {
  background: var(--teal-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,107,92,0.3);
}

/* ===== PAGE HEADER (non-home pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  padding: 3rem 0 2.5rem;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #B8C5D6;
  font-size: 1.05rem;
  max-width: 600px;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  border-top: 4px solid var(--teal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--teal-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--teal);
}

.card h3 { color: var(--navy); }

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FEATURE ROWS ===== */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: none; }

.feature-row__marker {
  flex-shrink: 0;
  width: 4px;
  height: 100%;
  min-height: 40px;
  background: var(--teal);
  border-radius: 2px;
}

.feature-row__label {
  font-weight: 700;
  color: var(--navy);
  min-width: 200px;
  font-size: 0.95rem;
}

.feature-row__desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== CALLOUT BOX ===== */
.callout {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.callout h4 { color: var(--teal); margin-bottom: 0.5rem; }
.callout p { color: var(--dark); margin-bottom: 0; font-size: 0.95rem; }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--cream);
}

.timeline__date {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.timeline__desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== LISTS ===== */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--dark);
  font-size: 0.95rem;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

/* ===== TWO-COLUMN ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ===== RESOURCE LINKS ===== */
.resource {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
  text-decoration: none;
}

.resource:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(26,107,92,0.08);
  transform: translateY(-1px);
}

.resource__title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.resource__desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.resource__url {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== CONTACT PERSON CARDS ===== */
.contact-person {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 10px;
  border-left: 4px solid var(--teal);
}

.contact-person__photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.contact-person__info h4 {
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.contact-person__title {
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-person__details {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.8;
}

.contact-person__details a {
  color: var(--link);
}

@media (max-width: 480px) {
  .contact-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  padding: 3rem 0 2rem;
  color: #7A8AAE;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer h4 {
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.footer a { color: #9CA3AF; }
.footer a:hover { color: var(--white); }

.footer__links {
  list-style: none;
}

.footer__links li { padding: 0.2rem 0; }

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: #5A6A8A;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { padding: 3rem 0; }
  .page-header { padding: 2rem 0; }
  .page-header h1 { font-size: 1.8rem; }
  .section { padding: 2.5rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-deep); padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .footer__inner { flex-direction: column; gap: 2rem; }
  .feature-row { flex-direction: column; gap: 0.5rem; }
  .feature-row__label { min-width: unset; }
}
