/**
 * AAPKA MANAGER DIGITAL - Responsive Breakpoints & Mobile Styles
 */

/* ==========================================================================
   TABLETS & SMALL LAPTOPS (<= 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-feature-pills {
    justify-content: center;
  }

  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

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

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

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

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

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-whatsapp-header {
    display: none;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: 72px; /* Header height */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-navy-deep);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  border-top: 1px solid rgba(198, 164, 90, 0.2);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-inner {
  padding: 1.5rem var(--container-padding) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #E2E8F0;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-gold);
}

.mobile-nav-contact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.5rem;
}

.mobile-contact-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
}

.mobile-contact-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.mobile-contact-row .icon {
  color: var(--color-gold);
}

.mobile-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-socials .social-btn {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   MOBILE PHONES (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  .site-section {
    padding: 3.75rem 0;
  }

  .top-bar-contact .top-bar-location {
    display: none;
  }

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

  .top-bar-social {
    display: none;
  }

  .hero-section {
    padding: 3.5rem 0 4.5rem;
  }

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

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-floating-card {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

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

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

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

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

  .enquiry-card {
    padding: 1.75rem 1.25rem;
  }

  .cta-banner-strip {
    padding: 3rem 0;
    text-align: center;
  }

  .cta-banner-inner {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner-actions {
    justify-content: center;
    width: 100%;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }

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

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

  .footer-legal-links {
    justify-content: center;
  }

  .whatsapp-floating-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 5.5rem;
    width: 40px;
    height: 40px;
  }

  .wa-tooltip {
    width: 280px;
    right: 0;
  }

  .legal-content-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   VERY SMALL SCREENS (<= 400px)
   ========================================================================== */
@media screen and (max-width: 400px) {
  .logo-img {
    max-width: 170px;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .btn-submit {
    min-width: 100%;
  }

  .back-to-top {
    display: none !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .wa-float-pulse {
    animation: none !important;
  }
}
