/* ============================================
   Responsive Styles
   ============================================ */

/* ---- Tablet & below ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 560px; margin: 0 auto; }
  .hero { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-badge { display: inline-flex; }
}

/* ---- Mobile menu ---- */
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 24px;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 1001;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { padding: 14px 16px; font-size: 1rem; border-radius: 10px; }
  .nav-menu a.active::after { display: none; }
  .nav-actions .btn-donate { display: none; }
  .nav-actions .btn-donate-mobile { display: inline-flex !important; margin-top: 16px; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .top-bar { font-size: 0.75rem; }
  .top-bar .container { justify-content: center; text-align: center; }
  .top-bar .top-right { display: none; }
  .brand-logo { width: 48px; height: 48px;}
  .brand-text strong { font-size: 0.9rem; }
  .brand-text span { font-size: 0.62rem; }
  .hero { padding-top: 36px; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
  .whatsapp-float { bottom: 72px; right: 16px; width: 48px; height: 48px; }
  .stat-card { padding: 24px 16px; }
}

/* ---- Very small (320px) ---- */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
  .card { padding: 22px 18px; }
}

/* ---- Large screens ---- */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}
@media (min-width: 1920px) {
  :root { --container: 1400px; }
  body { font-size: 17px; }
}

/* Responsive adjustments for mobile & tablets */
@media (max-width: 768px) {
  .leader-card {
    flex-direction: column;
  }
  
  .leader-image-wrapper {
    flex: none;
    width: 100%;
    height: 380px; 
    min-height: auto;
  }
  
  .leader-content {
    text-align: center;
    padding: 32px 24px;
  }
  
  .leader-location {
    align-self: center;
  }
}