/**
 * Sanju Pansari — logo visibility (loads last)
 * Logo PNG has a dark background — badge frame + glow + larger sizes.
 */

.sp-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sp-brand-logo-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  padding: 3px;
  background: linear-gradient(145deg, #0d0d0d 0%, #1a2e12 100%);
  box-shadow:
    0 0 0 2px rgba(154, 205, 50, 0.45),
    0 4px 14px rgba(13, 13, 13, 0.22),
    0 0 20px rgba(154, 205, 50, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sp-brand-logo-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(184, 224, 74, 0.5), rgba(61, 107, 30, 0.2));
  opacity: 0.6;
  z-index: -1;
  animation: sp-logo-glow 3s ease-in-out infinite;
}

@keyframes sp-logo-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.sp-brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  border-radius: 11px;
  filter: none !important;
}

.sp-brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sp-brand-wordmark strong {
  font-family: 'Poppins', 'Public Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0d0d0d;
  line-height: 1.1;
}

.sp-brand-wordmark em {
  font-style: normal;
  font-family: 'Poppins', 'Public Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d6b1e;
}

/* Desktop header */
.sp-brand-logo--desktop .sp-brand-logo-img {
  height: 56px !important;
  width: auto !important;
  min-height: 56px;
}

.sp-brand-logo--desktop:hover .sp-brand-logo-badge {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(184, 224, 74, 0.65),
    0 8px 22px rgba(13, 13, 13, 0.28),
    0 0 28px rgba(154, 205, 50, 0.28);
}

/* Mobile top bar */
.sp-brand-logo--mobile {
  justify-self: center;
  gap: 8px;
  max-width: calc(100vw - 140px);
}

.sp-brand-logo--mobile .sp-brand-logo-badge {
  border-radius: 12px;
  padding: 2px;
}

.sp-brand-logo--mobile .sp-brand-logo-img {
  height: 46px !important;
  width: auto !important;
  min-height: 46px;
}

.sp-brand-wordmark--mobile strong {
  font-size: 0.9375rem;
}

.sp-brand-wordmark--mobile em {
  font-size: 0.5625rem;
}

/* Menu drawer — dark header */
.sp-menu-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sp-menu-brand-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.sp-menu-brand-text span {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.85;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.sp-brand-logo--menu {
  gap: 10px;
  color: inherit;
}

.sp-brand-logo--menu .sp-brand-logo-badge {
  border-radius: 12px;
  box-shadow:
    0 0 0 2px rgba(184, 224, 74, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.sp-brand-logo--menu .sp-brand-logo-img {
  height: 48px !important;
  width: auto !important;
  min-height: 48px;
}

/* Override conflicting legacy rules */
body.pd-layout .header-logo,
body.pd-layout .pd-header-logo,
body.pd-layout .sp-mobile-logo,
body.pd-layout .sp-brand-logo {
  filter: none !important;
}

body.pd-layout .header-logo img,
body.pd-layout .pd-header-logo img,
body.pd-layout .header-logo-img,
body.pd-layout .sp-mobile-logo img,
body.pd-layout .sp-brand-logo-img {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 992px) {
  .sp-brand-logo--desktop .sp-brand-logo-img {
    height: 64px !important;
    min-height: 64px;
  }

  .sp-brand-wordmark strong {
    font-size: 1.25rem;
  }

  .sp-brand-wordmark em {
    font-size: 0.75rem;
  }
}

@media (max-width: 991px) {
  .site-header .header-logo img,
  .site-header .pd-header-logo img,
  .premium-mobile .site-header .header-logo img {
    height: auto !important;
  }

  body.pd-layout .sp-mobile-topbar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
}

@media (max-width: 380px) {
  .sp-brand-wordmark--mobile em {
    display: none;
  }

  .sp-brand-logo--mobile .sp-brand-logo-img {
    height: 42px !important;
    min-height: 42px;
  }
}
