/* Jefferson County Sheriff's Office — Plain HTML Rebuild */
/* Matches the design of jeffcosheriffco.gov */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-dark: #111b33;
  --navy-light: #243358;
  --gold: #b8960c;
  --gold-light: #d4ac0d;
  --gold-pale: #f5e6a3;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gray-800); background: var(--white); line-height: 1.6; }

/* ===== ALERT BANNER ===== */
.alert-banner {
  background: var(--red);
  color: var(--white);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-banner a { color: var(--white); text-decoration: underline; margin-left: auto; white-space: nowrap; }
.alert-banner .alert-icon { font-size: 1rem; flex-shrink: 0; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 4rem;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.site-logo-text { display: flex; flex-direction: column; }
.site-logo-title { color: var(--white); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.site-logo-sub { color: var(--gray-300); font-size: 0.75rem; }

nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
nav a, nav .nav-dropdown > button {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
nav a:hover, nav .nav-dropdown > button:hover { background: rgba(255,255,255,0.1); color: var(--white); }
nav a.active { background: rgba(255,255,255,0.15); color: var(--white); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
  border: 1px solid var(--gray-200);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.1s;
}
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--navy); }
.chevron { font-size: 0.625rem; transition: transform 0.2s; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
  margin-left: auto;
  font-size: 1.5rem;
}
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav .mobile-section-title {
  color: var(--gray-200);
  text-decoration: none;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  display: block;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.mobile-nav .mobile-section-title { color: var(--gold-light); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 1rem; }
.mobile-nav .mobile-sub { padding-left: 1.25rem; font-size: 0.875rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.hero-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); font-weight: 600; margin-bottom: 0.75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: var(--gray-300); max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.15s, background 0.15s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* Inner page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 0.8125rem; color: var(--gray-400); margin-bottom: 0.75rem; }
.page-hero .breadcrumb a { color: var(--gray-400); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { margin: 0 0.375rem; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; }
.page-hero p { font-size: 1rem; color: var(--gray-300); margin-top: 0.75rem; max-width: 700px; }

/* ===== MAIN CONTENT ===== */
main { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
.content-section { margin-bottom: 3rem; }
.content-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.content-section h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; margin-top: 1.5rem; }
.content-section p { color: var(--gray-600); margin-bottom: 1rem; }
.content-section ul, .content-section ol { color: var(--gray-600); padding-left: 1.5rem; margin-bottom: 1rem; }
.content-section li { margin-bottom: 0.375rem; }
.content-section a { color: var(--navy); font-weight: 500; }
.content-section a:hover { color: var(--gold); }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.card-icon { font-size: 1.5rem; flex-shrink: 0; color: var(--navy); background: var(--gray-100); width: 2.75rem; height: 2.75rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.card-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.375rem; }
.card-body p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; margin: 0; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.info-box.gold { border-left-color: var(--gold); }
.info-box.red { border-left-color: var(--red); background: #fef2f2; }
.info-box h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.info-box p { font-size: 0.9375rem; color: var(--gray-600); margin: 0; }

/* ===== CONTACT CARD ===== */
.contact-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-card .phone { font-size: 1.5rem; font-weight: 800; color: var(--gold-light); text-decoration: none; display: block; margin-bottom: 0.25rem; }
.contact-card .hours { font-size: 0.875rem; color: var(--gray-300); }
.contact-card .ext-list { margin-top: 1rem; font-size: 0.875rem; color: var(--gray-300); }
.contact-card .ext-list dt { color: var(--gray-400); font-size: 0.8125rem; }
.contact-card .ext-list dd { color: var(--white); font-weight: 600; margin-bottom: 0.5rem; }

/* ===== QUICK LINKS ===== */
.quick-links {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.quick-links h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.quick-link-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quick-link-item:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo-title { font-size: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-400); margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--gray-400); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--gray-300); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: var(--gray-400); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer-social a:hover { color: var(--gold-light); }
.footer-phone { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.footer-phone:hover { color: var(--gold-pale); }

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th { background: var(--navy); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-weight: 600; font-size: 0.875rem; }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); color: var(--gray-700); }
.data-table tr:hover td { background: var(--gray-50); }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; }
.badge-red { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.badge-green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-gold { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem; }
  .page-hero { padding: 2rem 1rem; }
  main { padding: 2rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .header-inner { padding: 0 1rem; }
}

/* ===== UTILITY ===== */
.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; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; } .mb-8 { margin-bottom: 2rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; } .text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; }
.text-navy { color: var(--navy); } .text-gold { color: var(--gold); } .text-gray { color: var(--gray-500); }
