/* ==========================================================================
   ProfitPilot Tools - Responsive Adjustments & Media Queries
   Mobile-friendly navigation, grids, and touch controls
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .hero-title {
    font-size: 2.25rem;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .header-inner {
    height: 3.75rem;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }

  .nav-link {
    display: block;
    padding: 0.625rem 0.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-link:hover, .nav-link:focus-visible, .nav-link.active {
    border-bottom-color: transparent;
    border-left-color: var(--color-primary);
    background-color: var(--color-primary-light);
  }

  .header-search {
    margin-top: var(--space-sm);
    width: 100%;
  }

  .header-search-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

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

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

  .calc-card, .results-panel, .tool-content-section {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .results-primary-value {
    font-size: 1.85rem;
  }

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

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

  .trust-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Reduced motion preference */
@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;
  }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .calc-actions, .ad-slot-container, .mobile-nav-toggle, .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .calc-layout {
    display: block;
  }

  .results-panel {
    border: 1px solid #000;
    box-shadow: none;
  }
}
