/* ─── MSSS NGO – Header & Navigation ────────────────────────────────────────── */

/* ── Topbar ──────────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 1; min-width: 0; overflow: hidden; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar a:hover { color: var(--orange); }
.topbar .sep { color: rgba(255,255,255,0.25); }

/* Social icons topbar */
.topbar-socials { display: flex; align-items: center; gap: 10px; }
.topbar-socials a {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition);
}
.topbar-socials a:hover { background: var(--orange); color: var(--white); }

/* ── Main Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

/* Brand Bar */
.brand-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal-blue) 100%);
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}
.brand-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.brand-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.brand-logo-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
}
.brand-text { text-align: center; }
.brand-title-hi {
  font-family: var(--font-hindi);
  font-size: clamp(0.95rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
}
.brand-title-en {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-socials {
  display: flex;
  gap: 10px;
  position: absolute;
  right: var(--section-px);
}
.brand-socials a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  transition: var(--transition);
}
.brand-socials a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ── Navigation Bar ──────────────────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: relative;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  position: relative;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-item.active > .nav-link {
  background: rgba(26,107,47,0.07);
  color: var(--royal-blue);
}
.nav-link .nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  border-top: 3px solid var(--orange);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s var(--ease);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-item:hover {
  background: rgba(26,107,47,0.06);
  color: var(--royal-blue);
  padding-left: 20px;
}
.dropdown-item .di-icon { font-size: 0.85rem; width: 18px; text-align: center; }

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: absolute;
  right: 0;
}
.nav-donate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(255,130,0,0.35);
}
.nav-donate-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,130,0,0.45);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger:hover { background: rgba(26,107,47,0.07); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 997;
  backdrop-filter: blur(4px);
}

/* ── Fixed Sidebar Buttons ───────────────────────────────────────────────────── */
.sidebar-btns {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 500;
}
.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 36px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-hindi);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: max-width 0.35s var(--ease), padding 0.35s var(--ease);
  white-space: nowrap;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
.sidebar-btn:hover {
  max-width: 200px;
  padding: 10px 14px;
  background: var(--royal-blue);
}
.sidebar-btn.orange { background: var(--orange); }
.sidebar-btn.orange:hover { background: var(--orange-dark); }
.sidebar-btn span { margin-left: 8px; }
.sidebar-btn .sb-icon { flex-shrink: 0; font-size: 0.9rem; }

/* ── Donate Float ─────────────────────────────────────────────────────────────── */
.donate-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f5c518;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #1a1a1a;
  box-shadow: 0 0 0 0 rgba(245,197,24,0.7), 0 4px 20px rgba(245,197,24,0.5);
  animation: donate-pulse 2.5s infinite;
  z-index: 997;
  transition: transform 0.3s;
  text-decoration: none;
}
.donate-float:hover { transform: scale(1.1); }
@keyframes donate-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,197,24,0.7), 0 4px 20px rgba(245,197,24,0.4); }
  50%  { box-shadow: 0 0 0 14px rgba(245,197,24,0), 0 4px 20px rgba(245,197,24,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(245,197,24,0), 0 4px 20px rgba(245,197,24,0.4); }
}

/* ── WhatsApp Float ──────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: white;
  box-shadow:
    0 0 0 0 rgba(37, 211, 102, 0.6),
    0 4px 20px rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.5s infinite;
  z-index: 998;
  transition: transform 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.7), 0 4px 20px rgba(37,211,102,0.4); }
  50%  { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
}

/* ── Responsive Header ───────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .nav-link { padding: 4px 5px; font-size: 0.7rem; }
  .nav-donate-btn { padding: 5px 10px; font-size: 0.72rem; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
  .navbar-inner { justify-content: flex-end; }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -290px;
    width: 285px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 12px 24px;
    overflow-y: auto;
    z-index: 998;
    box-shadow: var(--shadow-xl);
    transition: left 0.35s var(--ease);
    gap: 0;
  }
  .nav-menu.open { left: 0; }
  .mobile-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
  .mobile-overlay.open { opacity: 1; pointer-events: auto; }

  .nav-item { width: 100%; }
  .nav-link {
    padding: 12px 14px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--orange);
    border-radius: 0;
    padding: 0 0 0 8px;
    display: none;
    background: rgba(26,107,47,0.03);
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown-item { padding: 10px 14px; font-size: 0.84rem; }

  .brand-socials { display: none; }
  .brand-title-hi { font-size: 0.9rem; }
  .brand-logo-wrap { width: 48px; height: 48px; }
}

@media (max-width: 600px) {
  .topbar { display: none; }
  .brand-bar { padding: 10px 0; }
  .brand-title-hi { font-size: 0.82rem; }
}

@media (max-width: 400px) {
  .sidebar-btns { display: none; }
}
