/* =============================================
   Abouelezz Agency — Mobile & Tablet Responsive
   ============================================= */

@media (max-width: 1024px) {
  :root {
    --section-pad: 5rem 0;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 0;
  }

  #navbar {
    padding: 1rem 1.25rem !important;
  }

  .nav-links-wrap {
    position: fixed;
    top: 70px;
    inset-inline-start: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  html.light-mode .nav-links-wrap {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links-wrap.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .nav-cta-btn {
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-controls {
    justify-content: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
  }

  .hamburger {
    display: flex !important;
  }

  .hero-section {
    min-height: auto !important;
    padding: 7rem 1.25rem 4rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.25 !important;
  }

  .hero-sub {
    font-size: 1rem !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .services-grid,
  .portfolio-grid,
  .why-grid,
  .stats-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }

  #wa-float {
    bottom: 20px;
    left: 16px;
  }

  .stat-card {
    padding: 1.5rem !important;
  }

  .stat-number {
    font-size: 2.4rem !important;
  }
}
