/* ============================================================
   UNITED ASPIRANTS MOVEMENT & LEGAL DEFENSE
   Theme enhancements following Hopewell Design System
   ============================================================ */

/* Accent Color Variations */
:root {
  --clr-emerald-gold: #059669;
  --clr-navy-dark: #0a1120;
  --clr-navy-slate: #0f172a;
  --clr-amber-glow: #f59e0b;
}

/* Pulsing Status Dots */
.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--clr-primary);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseGreen 2s infinite;
}
.pulse-dot-red {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseRed 2s infinite;
}
.pulse-dot-amber {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--clr-secondary);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseAmber 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes pulseRed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes pulseAmber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ============================================================
   MEMORIAL & TRIBUTE CANDLE STYLING
   ============================================================ */
.memorial-section {
  background: radial-gradient(circle at 50% 10%, #172136 0%, #0a1120 70%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.candle-glow-ambient {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.candle-flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #fff7ed 0%, #f59e0b 55%, #dc2626 95%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.85), 0 0 32px rgba(220, 38, 38, 0.5);
  animation: candleFlicker 1.8s infinite ease-in-out alternate;
  display: inline-block;
}

@keyframes candleFlicker {
  0% { transform: scale(1) rotate(-1.5deg); opacity: 0.95; }
  50% { transform: scale(1.08, 0.96) rotate(1deg); opacity: 1; }
  100% { transform: scale(0.96, 1.06) rotate(-1deg); opacity: 0.92; }
}

.memorial-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.35s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}

.memorial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.memorial-card.lit {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px -8px rgba(245, 158, 11, 0.25);
}

.memorial-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.memorial-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef3c7;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}

.memorial-btn:hover, .memorial-btn.active {
  background: var(--clr-secondary);
  color: #0f172a;
  border-color: var(--clr-secondary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* ============================================================
   CASE STATUS TABS & TIMELINE
   ============================================================ */
.case-nav-pills {
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.case-nav-pills .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  transition: all 0.3s var(--ease);
}

.case-nav-pills .nav-link.active,
.case-nav-pills .nav-link:hover {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.case-docket-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.case-docket-card:hover {
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12);
}

.docket-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.timeline-stepper {
  position: relative;
  padding-left: 36px;
}

.timeline-stepper::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #e2e8f0;
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  margin-bottom: 26px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.3s var(--ease);
}

.timeline-step.active .timeline-marker {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.timeline-step.urgent .timeline-marker {
  border-color: var(--clr-accent);
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

/* ============================================================
   LAWYERS SHOWCASE (High Prominence)
   ============================================================ */
.lawyer-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: all 0.35s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lawyer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(22, 163, 74, 0.3);
}

.lawyer-img-wrapper {
  position: relative;
  aspect-ratio: 4/3.8;
  overflow: hidden;
}

.lawyer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.lawyer-card:hover .lawyer-img-wrapper img {
  transform: scale(1.05);
}

.lawyer-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lawyer-content {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   COMMUNITY & VERIFICATION
   ============================================================ */
.district-pill {
  font-size: 0.78rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  color: var(--clr-text-muted);
  display: inline-block;
  margin: 2px;
  transition: all 0.2s ease;
}

.district-pill:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  border-color: rgba(22, 163, 74, 0.3);
}

/* ============================================================
   CONTRIBUTION & LEGAL DEFENSE BOX
   ============================================================ */
.amount-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.btn-amount {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--clr-text);
  transition: all 0.2s var(--ease);
}

.btn-amount:hover, .btn-amount.active {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
}

.qr-frame {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  display: inline-block;
}

/* Notification Toast / Feedback */
.hw-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hw-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   MOBILE NAVIGATION STYLES & DROPDOWN CARD
   ============================================================ */
@media (max-width: 991.98px) {
  .navbar-hw {
    padding: 10px 0 !important;
  }
  .navbar-hw .navbar-collapse {
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.22) !important;
    padding: 1.25rem 1rem !important;
    margin-top: 0.75rem !important;
    border: 1px solid #e2e8f0 !important;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .navbar-hw .nav-link {
    padding: 10px 14px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    color: var(--clr-text) !important;
  }
  .navbar-hw .nav-link:hover,
  .navbar-hw .nav-link.active {
    background: var(--clr-primary-light) !important;
    color: var(--clr-primary-dark) !important;
  }
  .navbar-hw .nav-link::after {
    display: none !important;
  }
  .navbar-hw .dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
  }
}

/* ============================================================
   MOBILE RESPONSIVENESS & OVERFLOW CONTAINMENT
   ============================================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
}

section, header.hero, footer.footer-hw {
  max-width: 100vw !important;
  overflow-x: clip !important;
  width: 100% !important;
}

@media (max-width: 991.98px) {
  .container, .container-fluid {
    max-width: 100% !important;
  }
}

.hero {
  overflow: hidden !important;
  max-width: 100% !important;
}

.hero-glow {
  max-width: 100vw !important;
  overflow: hidden !important;
}

@media (max-width: 991.98px) {
  .hero {
    padding: 120px 0 60px !important;
  }
  .hero-media {
    margin-top: 2rem;
  }
  .float-card-1 {
    top: 4% !important;
    left: 8px !important;
    right: auto !important;
  }
  .float-card-2 {
    bottom: 4% !important;
    right: 8px !important;
    left: auto !important;
  }
  .float-card {
    padding: 10px 14px !important;
    max-width: calc(100% - 16px) !important;
  }
  .float-card .fc-val {
    font-size: 0.95rem !important;
  }
  .float-card .fc-label {
    font-size: 0.72rem !important;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 50px 0 !important;
  }
  .case-nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    border-radius: 14px !important;
    padding: 4px !important;
  }
  .case-nav-pills .nav-link {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 7px 14px !important;
    font-size: 0.82rem !important;
  }
  .case-docket-card {
    border-radius: 18px !important;
  }
  .docket-header {
    padding: 16px 18px !important;
  }
  .cta-banner {
    padding: 36px 18px !important;
    border-radius: 20px !important;
  }
  .testi-section {
    padding: 24px 16px !important;
    border-radius: 20px !important;
  }
  .testi-card {
    padding: 20px 16px !important;
  }
  #in-memoriam .rounded-pill {
    border-radius: 20px !important;
    padding: 12px 14px !important;
    max-width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .amount-btn-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: clamp(1.8rem, 7.5vw, 2.3rem) !important;
  }
  .hero-lead {
    font-size: 0.95rem !important;
  }
  .hero .d-flex.flex-wrap.gap-3 {
    flex-direction: column !important;
  }
  .hero .d-flex.flex-wrap.gap-3 .btn-hw-primary,
  .hero .d-flex.flex-wrap.gap-3 .btn-hw-outline {
    width: 100% !important;
    justify-content: center !important;
  }
  .stats-band {
    border-radius: 20px !important;
  }
  .stat-item {
    padding: 18px 8px !important;
  }
  .stat-num {
    font-size: 1.45rem !important;
  }
  .stat-label {
    font-size: 0.72rem !important;
  }
}

/* ============================================================
   PAGE HERO BANNERS & HEADING HIGH-CONTRAST SAFEGUARDS
   ============================================================ */
.hero-banner {
  background-color: #0a1120 !important;
  background: linear-gradient(135deg, #020617 0%, #0f172a 60%, #1e293b 100%) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgba(22, 163, 74, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 2.2rem 0 !important;
}

.hero-banner h1,
.hero-banner h2,
.hero-banner h3,
.hero-banner h4,
.hero-banner .brand-font {
  color: #ffffff !important;
}

.hero-banner .breadcrumb-item,
.hero-banner .breadcrumb-item a,
.hero-banner p,
.hero-banner .text-light {
  color: rgba(255, 255, 255, 0.85) !important;
}

.hero-banner .breadcrumb-item.active {
  color: #f59e0b !important;
}

/* Ensure sections with white text have solid dark backgrounds */
.memorial-section {
  background-color: #0a1120 !important;
  background: radial-gradient(circle at 50% 10%, #172136 0%, #0a1120 70%) !important;
  color: #ffffff !important;
}

.memorial-section .section-title,
.memorial-section h2,
.memorial-section h3,
.memorial-section h4,
.memorial-section h5 {
  color: #ffffff !important;
}

.testi-section {
  background-color: #0c6a30 !important;
  background: linear-gradient(180deg, #0f7a37 0%, #0c6a30 100%) !important;
  color: #ffffff !important;
}

.testi-section .section-title {
  color: #ffffff !important;
}

.cta-banner {
  background-color: #0f7a37 !important;
  background: linear-gradient(-45deg, #16a34a, #0f7a37, #d97706, #f59e0b) !important;
  color: #ffffff !important;
}

.cta-banner h2 {
  color: #ffffff !important;
}

/* Ensure all light-background headings are dark with 100% contrast */
.section-title:not(.text-white) {
  color: #0f172a !important;
}

h1:not(.text-white):not(.text-light),
h2:not(.text-white):not(.text-light),
h3:not(.text-white):not(.text-light),
h4:not(.text-white):not(.text-light),
h5:not(.text-white):not(.text-light),
h6:not(.text-white):not(.text-light) {
  color: #0f172a;
}

.brand-font {
  font-family: 'Cinzel', Georgia, serif;
}

.metric-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10b981;
}

.btn-white {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
.btn-white:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* ============================================================
   MOBILE OFFCANVAS DRAWER (Appears From Left)
   ============================================================ */
.offcanvas.offcanvas-start {
  width: 320px !important;
  max-width: 86vw !important;
  background: #ffffff !important;
  box-shadow: 12px 0 45px rgba(15, 23, 42, 0.28) !important;
  border-right: 1px solid #e2e8f0 !important;
  z-index: 1075 !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.offcanvas-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.mobile-drawer-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clr-text) !important;
  padding: 10px 14px !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.mobile-drawer-nav .nav-link:hover,
.mobile-drawer-nav .nav-link.active {
  background: var(--clr-primary-light) !important;
  color: var(--clr-primary-dark) !important;
}

.mobile-drawer-nav .dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: none !important;
}

.mobile-drawer-nav .dropdown-item {
  font-size: 0.85rem !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  color: var(--clr-text) !important;
}

.mobile-drawer-nav .dropdown-item:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.offcanvas-backdrop {
  z-index: 1070 !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
}

/* ============================================================
   LANDING PAGE DESKTOP VIEW: CONTENT SECTIONS HORIZONTAL PADDING
   ============================================================ */
@media (min-width: 992px) {
  /* Give landing page content sections generous side padding */
  body.page-home header.hero,
  body.page-home section.section-pad {
    padding-left: clamp(2rem, 5vw, 5rem) !important;
    padding-right: clamp(2rem, 5vw, 5rem) !important;
  }

  /* Ensure containers within landing page content sections are properly proportioned */
  body.page-home .container {
    max-width: 1240px !important;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem) !important;
    padding-right: clamp(1.25rem, 2.5vw, 2.5rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Align desktop navbar container with the content margins */
  body.page-home #mainNav .container {
    max-width: 1240px !important;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem) !important;
    padding-right: clamp(1.25rem, 2.5vw, 2.5rem) !important;
  }

  /* Align desktop footer container with the content margins */
  body.page-home footer.footer-hw .container {
    max-width: 1240px !important;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem) !important;
    padding-right: clamp(1.25rem, 2.5vw, 2.5rem) !important;
  }
}

@media (min-width: 1400px) {
  /* Extra breathing room on large screens / monitors (>= 1400px) */
  body.page-home header.hero,
  body.page-home section.section-pad {
    padding-left: clamp(3.5rem, 7vw, 7rem) !important;
    padding-right: clamp(3.5rem, 7vw, 7rem) !important;
  }

  body.page-home .container {
    max-width: 1320px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }

  body.page-home #mainNav .container {
    max-width: 1320px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }

  body.page-home footer.footer-hw .container {
    max-width: 1320px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}


