/* ============================================
   AMAX DIGITAL - RESPONSIVE STYLES
   Mobile-First Design Breakpoints
   ============================================ */

/* ============================================
   BREAKPOINTS
   ============================================ */
/*
   xs: 0-639px (mobile)
   sm: 640px-767px (large mobile)
   md: 768px-1023px (tablet)
   lg: 1024px-1279px (desktop)
   xl: 1280px+ (large desktop)
*/

/* ============================================
   TABLET STYLES (768px and up)
   ============================================ */
@media screen and (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-4xl) 0;
  }

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

  .hero-buttons {
    flex-wrap: nowrap;
  }
}

/* ============================================
   DESKTOP STYLES (1024px and up)
   ============================================ */
@media screen and (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ============================================
   MOBILE STYLES (max-width: 767px)
   ============================================ */
@media screen and (max-width: 767px) {
  /* Typography Adjustments */
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }

  /* Navigation Mobile */
  .navbar-container {
    height: 70px;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-xl) var(--space-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: left var(--transition-base);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
  }

  .navbar-menu li:last-child {
    border-bottom: none;
  }

  .navbar-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  .navbar-cta .btn {
    display: block;
    width: 100%;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 90vh;
    padding-top: 70px;
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-description {
    font-size: var(--fs-lg);
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section Adjustments */
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-lg {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--fs-2xl);
  }

  .section-description {
    font-size: var(--fs-base);
  }

  /* Grid Adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat-number {
    font-size: var(--fs-3xl);
  }

  /* Card Adjustments */
  .card-image {
    height: 180px;
  }

  .card-body {
    padding: var(--space-md);
  }

  /* Footer */
  .footer {
    padding: var(--space-2xl) 0 var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Button Sizes */
  .btn {
    padding: 0.75rem 1.5rem;
  }

  .btn-large {
    padding: 0.875rem 2rem;
    font-size: var(--fs-base);
  }

  /* Spacing Utilities Mobile */
  .container {
    padding: 0 var(--space-sm);
  }

  .mb-xl {
    margin-bottom: var(--space-lg);
  }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: var(--fs-2xl);
  }

  .section-title {
    font-size: var(--fs-xl);
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: var(--fs-xl);
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-sm);
  }
}

/* ============================================
   LARGE DESKTOP (1440px and up)
   ============================================ */
@media screen and (min-width: 1440px) {
  .container {
    max-width: var(--container-2xl);
  }

  .section {
    padding: 120px 0;
  }

  .hero {
    min-height: 100vh;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .navbar-toggle,
  .btn,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  .section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
}

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

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0052a3;
    --neutral-700: #2c2c2c;
    --neutral-800: #1a1a1a;
  }

  .btn {
    border-width: 3px;
  }

  .card {
    border: 2px solid var(--neutral-300);
  }
}
