/**
 * EM Visa Global - Responsive Media Queries
 * Breakpoints: 360px, 390px, 768px, 1024px, 1440px
 */

/* Laptops / Desktops under 1024px */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 520px;
  }

  .hero-headline {
    font-size: 2.3rem;
  }
}

/* Tablets under 768px */
@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }

  .main-nav.nav-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-cta {
    width: 100%;
    margin-top: 10px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    padding: 24px;
  }

  .hero-headline {
    font-size: 2rem;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-contact {
    justify-content: center;
  }
}

/* Mobile Screens under 480px (including 360px & 390px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .hero-headline {
    font-size: 1.7rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .floating-whatsapp-container {
    bottom: 20px;
    right: 16px;
  }

  .floating-whatsapp-btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }

  .floating-quick-actions {
    bottom: 20px;
    left: 16px;
  }

  .quick-action-btn {
    width: 42px;
    height: 42px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr !important;
  }
}
