/* =====================================================================
   Amravati Range Police — Header & Footer Theme
   Load AFTER style.css and theme-upgrade.css.
   Visual styling only: show/hide behaviour of menus, drawer, ticker and
   lightbox is left to your existing CSS/JS so nothing breaks.
   ===================================================================== */

:root {
  --sh-navy: #0b2447;
  --sh-navy-2: #143a72;
  --sh-navy-deep: #07172f;
  --sh-gold: #c9a227;
  --sh-gold-soft: #f6ecc6;
  --sh-red: #d7263d;
}

.skip-link:focus { background: var(--sh-gold); color: #1b1500; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; z-index: 9999; }

/* ---------- Top bar ---------- */
.topbar { background: var(--sh-navy-deep); color: #b9cde1; font-size: 12.5px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 38px; padding-block: 4px; }
.topbar-gov { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: .2px; }
.topbar-gov .dot { color: var(--sh-gold); }
.topbar-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar-tools a { color: #dbe7f4; text-decoration: none; }
.topbar-tools a:hover { color: var(--sh-gold); }
.topbar-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.topbar-admin { padding: 3px 12px; border: 1px solid rgba(201, 162, 39, .6); border-radius: 999px; color: var(--sh-gold-soft) !important; }
.topbar-admin:hover { background: var(--sh-gold); color: #1b1500 !important; }
.font-tool { display: inline-flex; gap: 4px; }
.font-btn { min-width: 30px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-size: 12px; cursor: pointer; }
.font-btn:hover { background: var(--sh-gold); color: #1b1500; border-color: var(--sh-gold); }

/* ---------- Masthead ---------- */
.masthead { background: #fff; border-bottom: 1px solid #e3e9f2; box-shadow: 0 2px 14px rgba(11, 36, 71, .06); position: relative; z-index: 20; }
.masthead::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--sh-navy), var(--sh-gold) 50%, var(--sh-navy)); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { width: 68px; height: 68px; object-fit: contain; flex: none; filter: drop-shadow(0 3px 6px rgba(11, 36, 71, .22)); }
.brand-text { display: grid; gap: 1px; min-width: 0; }
.brand-gov { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sh-gold); }
.brand-mr { font-family: "Noto Serif Devanagari", serif; font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; color: var(--sh-navy); line-height: 1.25; }
.brand-en { font-size: 13px; color: #5d6b80; font-weight: 500; }

.masthead-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.emergency { align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; background: linear-gradient(135deg, #a4161a, var(--sh-red)); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(164, 22, 26, .3); }
.emergency:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(164, 22, 26, .38); color: #fff; }
.emergency-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #a4161a; font-weight: 800; font-size: 17px; }
.emergency-lbl { font-size: 11.5px; line-height: 1.25; font-weight: 600; }
.btn-complaint { white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid #d5deec; background: #fff; color: var(--sh-navy); cursor: pointer; transition: all .2s ease; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--sh-navy); color: #fff; border-color: var(--sh-navy); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Search drawer ---------- */
.search-drawer { background: linear-gradient(135deg, var(--sh-navy), var(--sh-navy-2)); padding-block: 16px; border-bottom: 3px solid var(--sh-gold); }
.search-form { display: flex; gap: 10px; max-width: 760px; margin-inline: auto; }
.search-form input[type="search"] { flex: 1; padding: 13px 20px; border-radius: 999px; border: 0; font: inherit; background: #fff; }
.search-form input[type="search"]:focus { outline: 3px solid var(--sh-gold); }
.search-form .btn-primary { background: var(--sh-gold); color: #1b1500; box-shadow: none; }
.search-form .btn-primary:hover { background: #e0b92f; color: #1b1500; }

/* ---------- Navbar ---------- */
.navbar { background: linear-gradient(135deg, var(--sh-navy) 0%, var(--sh-navy-2) 100%); z-index: 60; box-shadow: 0 6px 18px rgba(11, 36, 71, .18); }
.navbar-inner { display: flex; align-items: center; }
.nav-menu { list-style: none; margin: 0; padding: 0; align-items: stretch; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 15px 18px; color: #e8f0fa; font-weight: 600; font-size: 14.5px; text-decoration: none; position: relative; }
.nav-menu > li > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px; background: var(--sh-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-menu > li:hover > a, .nav-menu > li.is-active > a { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-menu > li:hover > a::after, .nav-menu > li.is-active > a::after { transform: scaleX(1); }
.nav-menu .caret { font-size: 9px; opacity: .7; }
.dropdown { list-style: none; margin: 0; padding: 8px; min-width: 250px; background: #fff; border: 1px solid #e3e9f2; border-top: 3px solid var(--sh-gold); border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(11, 36, 71, .22); }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; color: #1c2a3f; font-size: 14px; font-weight: 500; text-decoration: none; }
.dropdown a:hover { background: #eef4ff; color: #1d5bbf; padding-left: 18px; }
.nav-toggle { align-items: center; gap: 10px; padding: 13px 0; background: none; border: 0; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle .bars { display: inline-grid; gap: 4px; }
.nav-toggle .bars i { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; }

/* ---------- Ticker ---------- */
.ticker { background: #fff8e3; border-bottom: 1px solid #efdfa2; }
.ticker-inner { display: flex; align-items: center; gap: 14px; }
.ticker-label { flex: none; padding: 9px 18px; background: var(--sh-gold); color: #1b1500; font-weight: 800; font-size: 13px; letter-spacing: .3px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); padding-right: 26px; }
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track a { color: #3b2f00; font-weight: 600; font-size: 14px; text-decoration: none; }
.ticker-track a:hover { color: #a4161a; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 20px; color: #b9cde1; font-size: 14px; background:
  radial-gradient(700px 260px at 100% 0%, rgba(201, 162, 39, .12), transparent 60%),
  linear-gradient(180deg, #0b2447 0%, var(--sh-navy-deep) 100%);
  border-top: 4px solid var(--sh-gold); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 36px; padding: 52px 0 36px; }
.footer-col h4 { margin: 0 0 16px; color: #fff; font-size: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--sh-gold); border-radius: 3px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: 54px; height: 54px; object-fit: contain; }
.footer-logo strong { color: #fff; font-size: 16px; line-height: 1.3; display: grid; }
.footer-logo strong span { color: var(--sh-gold); font-size: 12px; font-weight: 600; letter-spacing: .4px; }
.footer-about p { margin: 0 0 16px; line-height: 1.75; color: #9fb7cf; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.social-row a:hover { background: var(--sh-gold); color: #1b1500; border-color: var(--sh-gold); transform: translateY(-3px); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding: 5px 0 5px 16px; position: relative; color: #b9cde1; text-decoration: none; }
.footer-links a::before { content: "›"; position: absolute; left: 0; color: var(--sh-gold); font-weight: 800; }
.footer-links a:hover { color: #fff; padding-left: 20px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }
.footer-contact svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--sh-gold); }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--sh-gold); }
.footer-districts a:hover { color: var(--sh-gold) !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: #8ba6c0; }
.footer-bottom a { color: #dbe7f4; text-decoration: none; }
.footer-bottom a:hover { color: var(--sh-gold); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--sh-gold); background: var(--sh-navy); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 22px rgba(11, 36, 71, .35); z-index: 60; }
.to-top:hover { background: var(--sh-gold); color: #1b1500; transform: translateY(-3px); }

/* ---------- Lightbox (visual only) ---------- */
.lightbox { background: rgba(7, 23, 47, .94); backdrop-filter: blur(4px); }
.lightbox img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close { color: #fff; font-size: 38px; cursor: pointer; }
.lightbox-close:hover { color: var(--sh-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .nav-menu > li > a { padding: 14px 12px; font-size: 14px; }
}
@media (max-width: 820px) {
  .masthead-inner { justify-content: center; text-align: center; }
  .brand { justify-content: center; }
  .masthead-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .topbar-gov { display: none; }
  .topbar-inner { justify-content: center; }
  .brand-logo { width: 54px; height: 54px; }
  .footer-top { grid-template-columns: 1fr; padding: 38px 0 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .emergency-lbl { display: none; }
  .emergency { padding-right: 8px; }
}
@media print {
  .topbar, .navbar, .ticker, .search-drawer, .site-footer, .to-top, .masthead-actions { display: none !important; }
}