/* ==========================================================================
   Thane Police Commissionerate - Master Unified Stylesheet (style.css)
   Compliant with WCAG AA & WCAG AAA (High Contrast Mode)
   ========================================================================== */

:root {
  --navy: #10294f;
  --dark: #0b1a35;
  --red: #c1272d;
  --gold: #e29500;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --muted: #64748b;
  --rad: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: #1f2937;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- ACCESSIBILITY SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: #0b2545;
  color: #ffffff;
  padding: 10px 18px;
  z-index: 100001;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid #ffd400;
  transition: top 0.15s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  outline: 3px solid #ffd400;
  outline-offset: 2px;
}

/* Visible Focus Outline for WCAG 2.4.7 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b2545 !important;
  outline-offset: 2px !important;
}

::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TOP UTILITY BAR --- */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: .78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gov-flag {
  background: var(--red);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-right: 10px;
  display: inline-block;
}

/* --- MAIN HEADER --- */
.main-header {
  background: #fff;
  padding: 12px 0;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(16,41,79,0.06);
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-emblem {
  width: 56px;
  height: auto;
}

.logo-police {
  width: 62px;
  height: auto;
}

.brand-text h1 {
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.15;
}

.brand-text p {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Accessibility Zoom & Contrast Header Controls */
.a11y-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-zoom-group {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.a11y-btn {
  background: #ffffff;
  color: #0b2545;
  border: none;
  border-right: 1px solid #cbd5e1;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.a11y-btn:last-child {
  border-right: none;
}

.a11y-btn:hover {
  background: #e2e8f0;
}

.a11y-btn.active {
  background: #0b2545;
  color: #ffffff;
}

.contrast-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #0b2545;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
  transition: all 0.15s ease;
  font-family: inherit;
}

.contrast-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.contrast-btn.active {
  background: #000000;
  color: #ffd400;
  border-color: #000000;
}

.contrast-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--navy);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  background: #fff;
  color: var(--navy);
  border: none;
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.lang-btn.active {
  background: var(--red);
  color: #fff;
}

.ctrl-badge {
  background: #fef2f2;
  border: 1px dashed #fca5a5;
  padding: 6px 14px;
  border-radius: 6px;
  text-align: right;
}

.ctrl-badge span {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 600;
}

.ctrl-badge a {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

/* --- NAVIGATION BAR --- */
.nav-bar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.desktop-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-link {
  display: block;
  color: #f1f5f9;
  padding: 12px 18px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: .2s;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 10px 14px;
  cursor: pointer;
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
  z-index: 99;
}

.mobile-dropdown.open {
  display: block;
}

.mobile-nav-list, .notice-list, .footer-links {
  list-style: none;
}

.mobile-nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link {
  display: block;
  padding: 13px 20px;
  color: #10294f;
  font-size: .95rem;
  font-weight: 600;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  padding-left: 24px;
  color: var(--red);
}

.mobile-nav-link.active {
  background: #fef2f2;
  border-left-color: var(--red);
  color: var(--red);
}

.mobile-a11y-item {
  padding: 10px 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-a11y-title {
  font-weight: 700;
  color: #0b2545;
  font-size: 0.85rem;
}

/* --- PAGE HERO & BANNERS --- */
.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--navy));
  color: #fff;
  padding: 36px 0;
  margin-bottom: 30px;
  border-bottom: 3px solid var(--red);
}

.page-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.3px;
}

.page-banner p {
  font-size: .95rem;
  color: #cbd5e1;
  margin-top: 6px;
}

.page-section {
  padding: 36px 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.3px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* --- HOMEPAGE HERO --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
  color: #fff;
  padding: 40px 0;
  overflow: hidden;
}

.hero-wrap {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 24px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
  gap: 10px;
}

.badge-thumb-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.badge-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--gold);
  display: block;
}

.badge-tag {
  position: absolute;
  bottom: -2px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #fff;
  line-height: 1;
}

.badge-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-gold-lbl {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
}

.search-box {
  background: #fff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 580px;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  position: relative;
}

.search-wrap-rel {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  border: none;
  padding: 12px 14px;
  font-size: .95rem;
  outline: none;
  font-family: inherit;
}

.search-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.search-btn:hover {
  background: #a31d22;
}

.search-suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(16,41,79,0.18);
  z-index: 99;
  display: none;
  overflow: hidden;
}

.suggestion-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8fafc;
  color: var(--red);
}

.sugg-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-lbl {
  font-size: .72rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.hero-photo {
  position: absolute;
  right: 3%;
  bottom: 0;
  height: 88%;
  max-height: 520px;
  width: auto;
  z-index: 2;
  pointer-events: none;
  padding-right: 12px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55));
}

.hero-glow {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(226,149,0,0.14) 0%, rgba(16,41,79,0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-photo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* --- POLICE STATION SELECTOR --- */
.station-finder-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0 28px;
  box-shadow: 0 2px 8px rgba(16,41,79,0.03);
}

.station-finder-card {
  max-width: 1160px;
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--red);
  border-radius: var(--rad);
  padding: 20px 24px;
}

.station-finder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.station-finder-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.station-finder-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.station-select-wrap {
  position: relative;
  width: 100%;
}

.station-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--navy);
  background: #ffffff;
  outline: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.station-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,41,79,0.12);
}

.st-card {
  margin-top: 16px;
  background: #fcfdfd;
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  animation: stFadeIn 0.3s ease-out forwards;
  box-shadow: 0 4px 12px rgba(16,41,79,0.06);
  opacity: 1;
}

@keyframes stFadeIn {
  from { opacity: 0.2; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.st-media {
  width: 100%;
  position: relative;
  background: #0b1a35;
}

.st-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.st-ph {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy), var(--dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}

.st-ph-shield {
  font-size: 2.8rem;
  margin-bottom: 6px;
}

.st-ph-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.st-ph-sub {
  font-size: 0.85rem;
  color: #fef08a;
  font-weight: 600;
  margin-top: 2px;
}

.st-content {
  padding: 18px;
}

.st-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.st-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

@media(min-width: 768px) {
  .st-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.st-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.st-tel-link {
  color: var(--red);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.btn-map {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-map:hover {
  background: #1e3a8a;
}

.btn-clear-st {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-clear-st:hover {
  background: #fee2e2;
  color: var(--red);
  border-color: #fca5a5;
}

/* --- NEAREST STATION BANNER --- */
.st-nearest-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.st-nearest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.st-nearest-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-nearest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0b2545;
  color: #ffffff !important;
  padding: 7px 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s ease;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.2);
}

.btn-directions:hover {
  background: #1e3a8a;
  color: #ffffff !important;
}

.st-nearest-others {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #334155;
}

.nearby-st-link {
  color: #0b2545 !important;
  font-weight: 700;
  text-decoration: underline !important;
  margin: 0 4px;
}

.nearby-st-link:hover {
  color: #1e3a8a !important;
}

.st-privacy-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #475569;
}

/* --- HELPLINE STRIP --- */
.helpline-strip {
  background: var(--red);
  color: #fff;
  padding: 12px 0;
}

.helpline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.helpline-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
}

.hl-num {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.1;
}

.hl-title {
  font-size: .78rem;
  font-weight: 700;
  color: #fef08a;
  text-transform: uppercase;
}

.hl-desc {
  font-size: .7rem;
  opacity: .9;
}

/* --- COMMON CARDS & GRIDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: #fff;
  border-radius: var(--rad);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(16,41,79,0.04);
  transition: .25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16,41,79,0.08);
  border-color: #cbd5e1;
}

.service-card {
  display: flex;
  gap: 16px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fef2f2;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.service-desc {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.service-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.box {
  background: #fff;
  border-radius: var(--rad);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(16,41,79,0.04);
}

.box-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-box {
  border-left: 4px solid var(--gold);
  padding: 12px 18px;
  background: #fffbeb;
  font-style: italic;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}

.notice-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .88rem;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-tag {
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  align-self: flex-start;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.unit-chip {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: .2s;
}

.unit-chip:hover {
  border-color: var(--navy);
  background: #fff;
}

.u-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 4px;
}

.u-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
}

.social-bar {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  color: #fff;
  padding: 22px;
  border-radius: var(--rad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.soc-btn {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.15);
  transition: .2s;
}

.soc-btn:hover {
  background: #fff;
  color: var(--navy);
}

/* --- OFFICERS GRID --- */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.officer-card {
  background: #fff;
  border-radius: var(--rad);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16,41,79,0.04);
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.officer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16,41,79,0.08);
}

.officer-photo-wrap {
  width: 100%;
  height: 270px;
  background: #0b1a35;
  overflow: hidden;
  position: relative;
}

.officer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.officer-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.officer-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.officer-rank {
  font-size: .82rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
}

.officer-role {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.officer-meta {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  font-size: .78rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- FORMS --- */
.form-box {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--rad);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(16,41,79,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
}

.form-label .req {
  color: var(--red);
}

.form-control {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  outline: none;
  font-family: inherit;
  transition: .2s;
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16,41,79,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: .2s;
}

.btn-submit:hover {
  background: #a31d22;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

/* --- GALLERY --- */
.gallery-filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: .2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.gallery-item {
  background: #fff;
  border-radius: var(--rad);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(16,41,79,0.04);
  transition: .2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16,41,79,0.08);
}

.gallery-thumb-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #0b1a35;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: .3s;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.04);
}

.gallery-cap {
  padding: 14px;
}

.gallery-tag {
  font-size: .7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}

.gallery-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* --- SITE FOOTER --- */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 0 24px;
  border-top: 4px solid var(--red);
  font-size: .85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: .2s;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: #64748b;
}

.footer-desc {
  line-height: 1.6;
  margin-top: 10px;
}

/* --- FLOATING NEAREST POLICE STATION BUTTON --- */
.floating-nearest-wrap {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 9999;
}

@media (max-width: 640px) {
  .floating-nearest-wrap {
    bottom: max(72px, calc(72px + env(safe-area-inset-bottom, 0px)));
  }
}

.floating-crosshair-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.floating-crosshair-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #0b2545, 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-crosshair-btn:focus-visible {
  transform: scale(1.08);
  outline: 3px solid #0b2545 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #0b2545, 0 6px 20px rgba(0, 0, 0, 0.25);
}

.crosshair-icon {
  display: block;
  transition: transform 0.3s ease;
}

.floating-crosshair-btn.locating .crosshair-icon {
  animation: crosshairSpin 1s linear infinite;
}

@keyframes crosshairSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.float-btn-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #0b2545;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.float-btn-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0b2545;
}

.floating-crosshair-btn:hover .float-btn-tooltip,
.floating-crosshair-btn:focus-visible .float-btn-tooltip {
  opacity: 1;
  visibility: visible;
}

/* --- HIGH CONTRAST MODE (html.hc) - WCAG AAA (7:1) --- */
html.hc,
html.hc body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  background-image: none !important;
}

html.hc .top-bar,
html.hc .main-header,
html.hc .nav-bar,
html.hc .site-footer,
html.hc .footer-bottom,
html.hc .mobile-nav-menu,
html.hc .desktop-nav {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

html.hc .main-header .brand-text h1,
html.hc .main-header .brand-text p,
html.hc .top-bar-left,
html.hc .top-bar-right,
html.hc .site-footer h3,
html.hc .site-footer p,
html.hc .site-footer li,
html.hc .footer-bottom p,
html.hc .footer-desc,
html.hc .footer-col h4,
html.hc .footer-col li,
html.hc .footer-col a {
  color: #ffffff !important;
}

html.hc .nav-link,
html.hc .mobile-nav-link {
  color: #ffffff !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

html.hc .nav-link:hover,
html.hc .mobile-nav-link:hover {
  background: #222222 !important;
  color: #ffd400 !important;
}

html.hc .nav-link.active,
html.hc .mobile-nav-link.active {
  background: #ffd400 !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

html.hc a {
  color: #0033cc !important;
  text-decoration: underline !important;
}

html.hc a:visited {
  color: #551a8b !important;
}

html.hc .nav-link,
html.hc .mobile-nav-link,
html.hc .brand,
html.hc .btn,
html.hc .hero-btn,
html.hc .btn-map,
html.hc .btn-clear-st,
html.hc .btn-directions,
html.hc .st-tel-link {
  text-decoration: none !important;
}

html.hc button,
html.hc .btn,
html.hc .hero-btn,
html.hc .btn-search,
html.hc .btn-submit,
html.hc .lang-btn,
html.hc .a11y-btn,
html.hc .contrast-btn,
html.hc .btn-map,
html.hc .btn-clear-st,
html.hc .btn-directions {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
}

html.hc button:hover,
html.hc .btn:hover,
html.hc .hero-btn:hover,
html.hc .btn-map:hover,
html.hc .btn-clear-st:hover,
html.hc .btn-directions:hover {
  background-color: #222222 !important;
  color: #ffd400 !important;
}

html.hc .lang-btn.active,
html.hc .a11y-btn.active,
html.hc .contrast-btn.active {
  background-color: #ffd400 !important;
  color: #000000 !important;
  border-color: #000000 !important;
  font-weight: 700 !important;
}

html.hc button:focus,
html.hc button:focus-visible,
html.hc .btn:focus-visible,
html.hc a:focus-visible,
html.hc input:focus-visible,
html.hc select:focus-visible,
html.hc textarea:focus-visible {
  outline: 2px solid #ffd400 !important;
  outline-offset: 2px !important;
}

html.hc .card,
html.hc .st-card,
html.hc .station-finder-card,
html.hc .hl-card,
html.hc .service-card,
html.hc .stat-item,
html.hc .officer-card,
html.hc .mission-card,
html.hc .contact-card,
html.hc .form-container,
html.hc .form-box,
html.hc .gallery-item,
html.hc .st-nearest-banner,
html.hc .nearest-notice-inner,
html.hc .search-container,
html.hc .box {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
  background-image: none !important;
}

html.hc .st-card *,
html.hc .station-finder-card *,
html.hc .hl-card *,
html.hc .service-card *,
html.hc .officer-card *,
html.hc .mission-card *,
html.hc .contact-card *,
html.hc .box * {
  color: #000000 !important;
}

html.hc .btn-directions {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html.hc img,
html.hc .st-img,
html.hc .hero-img-wrap img,
html.hc .badge-thumb,
html.hc .officer-photo,
html.hc .gallery-thumb {
  border: 2px solid #000000 !important;
}

html.hc .hero,
html.hc .page-banner,
html.hc .station-finder-section {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
}

html.hc .hero-title,
html.hc .hero-sub,
html.hc .hero-badge,
html.hc .hero-badge * {
  color: #000000 !important;
}

html.hc .hero-badge {
  background: #ffffff !important;
  border: 2px solid #000000 !important;
  box-shadow: none !important;
}

/* Floating Crosshair Button in HC Mode */
html.hc .floating-crosshair-btn {
  background: #000000 !important;
  border: 2px solid #ffd400 !important;
  box-shadow: 0 0 0 2px #ffd400 !important;
}

html.hc .floating-crosshair-btn .crosshair-icon {
  stroke: #ffffff !important;
}

html.hc .floating-crosshair-btn .crosshair-icon circle[fill] {
  fill: #ffffff !important;
}

html.hc .floating-crosshair-btn:focus-visible,
html.hc .floating-crosshair-btn:hover {
  box-shadow: 0 0 0 4px #ffd400 !important;
}

html.hc .float-btn-tooltip {
  background: #000000 !important;
  color: #ffd400 !important;
  border: 1px solid #ffd400 !important;
}

html.hc .float-btn-tooltip::after {
  border-color: transparent transparent transparent #ffd400 !important;
}

html.hc select,
html.hc input,
html.hc textarea {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
}

html.hc .skip-link {
  background: #000000 !important;
  color: #ffd400 !important;
  border-color: #ffd400 !important;
}

html.hc .mobile-a11y-item {
  background: #000000 !important;
  border-bottom: 1px solid #ffffff !important;
}

html.hc .mobile-a11y-title {
  color: #ffffff !important;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media(max-width: 1024px) {
  .hero-photo {
    height: 60%;
    max-height: 380px;
  }
  .hero-glow {
    width: 320px;
    height: 320px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 768px) {
  .desktop-nav .nav-list {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .brand-text h1 {
    font-size: 1.15rem;
  }
  .brand-text p {
    font-size: .75rem;
  }
  .logo-emblem {
    width: 44px;
  }
  .logo-police {
    width: 48px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 640px) {
  .hero-wrap {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 340px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-photo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 0;
    height: 320px;
    max-height: 320px;
    padding-right: 0;
  }
  .hero-glow {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 0;
    width: 300px;
    height: 300px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}


/* ==========================================================================
   HOMEPAGE HERO WITH COMMISSIONER FIGURE & BADGE (Prompt 1, 2, 3 Compliant)
   ========================================================================== */
.hero-box {
  position: relative;
  border-radius: var(--rad);
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #0b1a35 0%, #10294f 55%, #1a365d 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.14);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 640px;
  padding: 44px 32px;
  color: #ffffff;
}

.commissioner-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px 6px 8px;
  border-radius: 50px;
  border: 1px solid rgba(226, 149, 0, 0.5);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.badge-avatar-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.badge-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--gold);
}

.badge-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--gold);
  color: #0b1a35;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  line-height: 1.2;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-name {
  font-size: 0.98rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-btn.primary {
  background: var(--gold);
  color: #0b1a35;
}

.hero-btn.primary:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.hero-btn.emergency {
  background: #dc2626;
  color: #ffffff;
}

.hero-btn.emergency:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Framing & Soft Edge Blending */
.hero-figure-wrap {
  position: absolute;
  right: 3%;
  bottom: 0;
  height: 88%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.hero-radial-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 149, 0, 0.22) 0%, rgba(16, 41, 79, 0) 70%);
  bottom: 5%;
  right: 5%;
  z-index: 1;
}

.hero-figure-img {
  position: relative;
  z-index: 2;
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  padding-right: 14px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* High Contrast mode for Hero */
html.hc .hero-box {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
}
html.hc .commissioner-badge {
  background: #111111 !important;
  border: 2px solid #ffd400 !important;
}
html.hc .badge-title {
  color: #ffd400 !important;
}
html.hc .badge-name {
  color: #ffffff !important;
}
html.hc .hero-title {
  color: #ffffff !important;
}
html.hc .hero-subtitle {
  color: #ffffff !important;
}
html.hc .hero-btn.primary {
  background: #ffd400 !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}
html.hc .hero-btn.emergency {
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #ffd400 !important;
}

@media (max-width: 1024px) {
  .hero-box { min-height: 360px; }
  .hero-figure-wrap { height: 60%; right: 1%; }
  .hero-title { font-size: 1.85rem; }
}

@media (max-width: 640px) {
  .hero-box {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 24px;
  }
  .hero-content {
    max-width: 100%;
    padding: 24px 20px 0;
  }
  .hero-figure-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: 320px;
    margin: 18px auto 0;
    justify-content: center;
  }
  .hero-figure-img {
    max-height: 320px;
    padding-right: 0;
  }
  .hero-radial-glow {
    width: 260px;
    height: 260px;
    right: 50%;
    transform: translateX(50%);
  }
}
