/* ========================================
   RAHAMA WEBSITE - MINIMAL MOBILE FIXES ONLY
   This version ONLY fixes mobile issues without affecting desktop
   Add this AFTER your main style.css
   ======================================== */

/* ===== MOBILE MENU ONLY ===== */
@media (max-width: 968px) {
  /* Show hamburger menu */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }
  
  .mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #2d7a52;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  
  /* Hamburger animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Mobile menu slide-in */
  .nav-links {
    position: fixed;
    top: 90px;
    right: -100%;
    background: white;
    flex-direction: column;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - 90px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    padding: 2rem 1rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    gap: 0;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    margin: 0;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-align: left;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .logo img {
    height: 60px;
  }
  
  .navbar {
    padding: 0.8rem 4%;
  }
}

/* ===== MOBILE RESPONSIVE GRIDS ===== */
@media (max-width: 768px) {
  /* Hero section */
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero-text {
    padding: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Stats - 2 columns on mobile */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Single column grids */
  .pillars,
  .project-grid,
  .involvement-options,
  .large-partners-grid,
  .government-large-grid,
  .values-large-grid,
  .additional-partners-grid,
  .news-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  /* Sticky buttons */
  .sticky-donate {
    bottom: 15px;
    right: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .sticky-whatsapp {
    bottom: 75px;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
}

/* ===== TABLET STATS (2 COLUMNS) ===== */
@media (max-width: 1200px) and (min-width: 769px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SMALL PHONES (1 COLUMN STATS) ===== */
@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hero {
    height: 50vh;
    min-height: 350px;
  }
}

/* ===== PREVENT HORIZONTAL SCROLL ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== TEXT OVERFLOW PROTECTION ===== */
h1, h2, h3, h4, h5, h6, p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== IMAGE SAFETY ===== */
img {
  max-width: 100%;
  height: auto;
}

/* ===== TOUCH TARGETS FOR MOBILE ===== */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
