/* AIBM Marketing Site - Responsive Styles */
/* Media queries for mobile, tablet, desktop */

/* Tablet and below (< 1024px) */
@media (max-width: 1024px) {
  :root {
    --space-4xl: 4rem;
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
  }

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

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

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .hero-headline {
    font-size: var(--font-size-4xl);
  }

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

/* Mobile and below (< 768px) */
@media (max-width: 768px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --nav-height: 64px;
    --container-padding: var(--space-md);
  }

  /* Navigation - Mobile Menu */
  .navbar-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .navbar-menu.open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-cta {
    margin-left: 0;
    width: 100%;
  }

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

  .grid-auto-fit {
    grid-template-columns: 1fr;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

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

  .hero-subheadline {
    font-size: var(--font-size-base);
  }

  .hero-ctas {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  /* Sections */
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-xl);
  }

  .section-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xl);
  }

  /* Cards */
  .card {
    padding: var(--space-lg);
  }

  /* Stats */
  .stat-value {
    font-size: var(--font-size-3xl);
  }

  /* ROI Section */
  .roi-chart {
    padding: var(--space-lg);
  }

  .roi-item {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Timeline */
  .timeline-item {
    padding-left: var(--space-xl);
  }

  .timeline-marker {
    width: 14px;
    height: 14px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  /* Forms */
  .form-group {
    margin-bottom: var(--space-md);
  }

  /* Calculator */
  .calculator-inputs {
    padding: var(--space-lg);
  }

  .calculator-results {
    padding: var(--space-lg);
  }

  /* Assessment */
  .question-card {
    padding: var(--space-lg);
  }

  .question-text {
    font-size: var(--font-size-lg);
  }

  /* Contact Form */
  .trust-elements {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  :root {
    --space-3xl: 2rem;
    --space-2xl: 1.5rem;
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.25rem;
  }

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

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

  .card-title {
    font-size: var(--font-size-lg);
  }

  .level-badge {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }

  .btn {
    padding: var(--space-sm) var(--space-lg);
  }

  .btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
  }
}

/* Large desktop (> 1280px) */
@media (min-width: 1280px) {
  .grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

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

  .section-title {
    font-size: 3rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .mobile-menu-toggle,
  .mini-assessment,
  .roi-calculator,
  .contact {
    display: none;
  }

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

  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }

  .section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Adjust font smoothing for retina displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
