/* ==========================================================================
   Ajath Infotech - Responsive Stylesheet
   Breakpoints: Desktop, Laptop, Tablet/iPad, Mobile, Small Mobile
   ========================================================================== */

/* --------------------------------------------------------------------------
   Laptop & Medium Desktops (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --header-height: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 36px;
  }

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

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

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

/* --------------------------------------------------------------------------
   Desktop & Laptop Screens (min-width: 992px)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .mobile-nav-drawer,
  .drawer-backdrop,
  .nav-mobile-toggle {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Tablets & iPads (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .nav-menu {
    display: none !important;
  }

  .nav-mobile-toggle {
    display: flex !important;
  }

  .nav-cta-btn {
    display: none !important;
  }

  /* Mobile Drawer Overlay */
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;

    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #090e17;
    border-left: 1px solid var(--border-glass);
    z-index: 1500;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    transition: right var(--transition-normal);
  }

  .mobile-nav-drawer.open {
    right: 0;
  }

  .drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1400;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
  }

  .drawer-backdrop.open {
    display: block;
    opacity: 1;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .drawer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
  }

  .drawer-nav-list a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    display: block;
    padding: 8px 0;
  }

  .drawer-nav-list a:hover, .drawer-nav-list a.active {
    color: var(--accent-cyan);
  }

  /* Hero Stacking on Mobile / Tablet */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    text-align: center;
  }

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

  .hero-actions {
    justify-content: center;
  }

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

  .hero-tech-badges {
    justify-content: center;
  }

  /* Workflow & Phone Mockups */
  .workflow-steps-track {
    flex-direction: column;
    gap: 16px;
  }

  .workflow-connector {
    width: 2px;
    height: 24px;
    transform: rotate(90deg);
  }

  .phone-mockups-carousel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone-frame {
    margin: 0 auto;
  }

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

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

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

/* --------------------------------------------------------------------------
   Mobile Handsets (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
  }

  .hero-form-card {
    padding: 24px 20px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-grid, .agents-grid, .portfolio-grid, .why-grid, .process-grid, .stats-grid, .ai-examples-grid, .showcase-highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .section-header {
    margin-bottom: 40px;
  }

  .cta-banner-box {
    padding: 40px 24px;
  }

  .cta-btn-group {
    flex-direction: column;
    width: 100%;
  }

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

  .contact-info-card {
    padding: 28px 20px;
  }

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

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

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

  /* Sticky Bottom Mobile Conversion CTA (Page 17 requirement) */
  .mobile-sticky-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 9, 14, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 240, 255, 0.25);
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-sticky-cta-bar .btn {
    flex: 1;
  }

  body {
    padding-bottom: 74px; /* offset for sticky cta bar */
  }
}

/* Hide Sticky Bottom Bar on Desktop/Tablet */
@media (min-width: 768px) {
  .mobile-sticky-cta-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Screens (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

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

  .phone-frame {
    width: 240px;
    height: 480px;
  }

  .portfolio-filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.84rem;
  }

  .workflow-inspector {
    flex-direction: column;
    align-items: flex-start;
  }
}
