/* ═══════════════════════════════════════════════════════════════════
   SAAVANI GLOBAL — Responsive Breakpoints
   Mobile-first responsive design
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

  .about-grid {
    gap: 50px;
  }

  .stats-bar {
    padding: 40px 30px;
    gap: 20px;
  }

  .stat-number { font-size: 2.2rem; }

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

  .hero-stats {
    gap: 32px;
  }

  .hero h1 { font-size: 2.8rem; }
}

/* ── Small Tablet / Large Phone (max-width: 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 20px;
  }

  /* Navigation */
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 12px;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .navbar-cta {
    width: 100%;
    text-align: center;
    margin-top: 12px;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-stat h3 { font-size: 1.8rem; }
  .hero-stat p { margin-bottom: 0; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Stats Bar */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 24px;
    margin-top: -40px;
    border-radius: var(--radius-lg);
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-number { font-size: 2rem; }

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

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Contact Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 32px 24px;
  }

  /* Page Header */
  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* CTA */
  .cta-content {
    padding: 0 16px;
  }

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

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Pricing */
  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  /* Team */
  .team-card .avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  .scroll-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 40px;
  }
}

/* ── Small Phone (max-width: 480px) ── */
@media (max-width: 480px) {
  :root {
    --container-padding: 0 16px;
  }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-label {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 28px 24px;
  }

  .stats-bar {
    padding: 24px 20px;
    gap: 16px;
  }

  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.8rem; }

  .section-header p {
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 28px 24px;
  }

  .glass-card {
    padding: 24px;
  }

  .process-step {
    flex-direction: column;
    gap: 16px;
  }

  .process-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 1rem;
  }
}

/* ── 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;
  }
}
