/**
 * Engage Beta Marketing Website
 * Responsive Styles
 */

/* ========================================
   TABLET (768px and below)
   ======================================== */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  /* Navigation */
  .navbar-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-nav);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    pointer-events: none;
    margin-left: 0;
  }
  
  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .navbar-menu li {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm) 0;
  }
  
  .navbar-cta {
    margin-left: 0;
    margin-top: var(--spacing-md);
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-end {
    margin-left: auto;
  }

  .beta-badge {
    display: none;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  /* Screenshot Gallery */
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  /* Slider */
  .slider-tabs {
    gap: 0.35rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .slider-tabs::-webkit-scrollbar { display: none; }

  .slide {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .slide-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Buttons */
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Sections */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Container */
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ========================================
   MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero */
  .hero-text .tagline {
    font-size: 1.125rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Features */
  .feature-card {
    padding: var(--spacing-lg);
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  /* Pricing */
  .pricing-card {
    padding: var(--spacing-lg);
  }
  
  .pricing-price {
    font-size: 2.5rem;
  }
  
  /* Forms */
  .btn {
    width: 100%;
  }
  
  /* Buttons in CTA sections */
  .cta-section .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ========================================
   LARGE DESKTOP (1400px and above)
   ======================================== */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }
  
  .hero-content {
    gap: var(--spacing-2xl);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .mobile-menu-toggle,
  .hero-cta,
  .cta-section,
  .footer {
    display: none !important;
  }
  
  .hero {
    margin-top: 0;
  }
  
  a {
    text-decoration: underline;
  }
  
  * {
    box-shadow: none !important;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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 support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0066cc;
    --dark-blue: #003d7a;
  }
  
  .btn {
    border-width: 3px;
  }
}
