/* ==========================================================================
  Afrikult - Responsive Mobile & Tablet Rules
   Breakpoints: 1024px (Tablet / Small Desktop), 768px (Mobile Large), 480px (Mobile Small)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-seamless-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-seamless {
    order: -1;
    justify-content: center;
  }

  .hero-image-blend {
    max-width: 100%;
  }

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

  .why-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 72px;
  }

  .brand-logo-img {
    height: 58px;
  }

  .site-footer .brand-logo-img {
    height: 76px;
  }

  .presentation-frame {
    height: 55vh;
    min-height: 240px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-cta-desktop {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-section {
    min-height: 480px;
    background-position: 58% center;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-pill-primary,
  .btn-pill-secondary {
    justify-content: center;
    width: 100%;
  }

  .hero-blend-img {
    height: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-pillars-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .footer-top-bar,
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-social-wrapper {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-section {
    min-height: 520px;
    background-image: linear-gradient(90deg, rgba(8, 12, 20, 0.99), rgba(8, 12, 20, 0.92)), url('../assets/images/hero-wide.jpg');
    background-position: 60% center;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .country-dial-select {
    width: 100%;
  }

  .custom-dial-code {
    width: 100%;
    flex-basis: auto;
  }

  .hero-notepad-card {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }

  .hero-slogan-badge {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.72rem;
  }

  .floating-whatsapp {
    bottom: 1.25rem;
    left: 1.25rem;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}
