/* ================================================================
   RESPONSIVE.CSS - Mobile and tablet breakpoints
   ================================================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .content-area.with-sidebar {
    grid-template-columns: 1fr;
  }

  .widget-area {
    order: 2;
  }

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

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

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

/* Mobile (768px and below) */
@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .header-inner {
    height: var(--header-height-mobile);
  }

  .main-navigation {
    display: none;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface-elevated);
    flex-direction: column;
    padding: var(--space-6);
    z-index: var(--z-fixed);
    overflow-y: auto;
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-navigation li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .main-navigation a {
    padding: var(--space-4) 0;
    width: 100%;
    justify-content: space-between;
  }

  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--space-4);
    display: none;
  }

  .main-navigation li.active > .sub-menu {
    display: flex;
  }

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .hero {
    padding: var(--space-16) 0;
  }

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

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

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

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

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

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .grid-6 {
    grid-template-columns: 1fr;
  }

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

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

  .page-header {
    padding: var(--space-12) 0;
  }

  .page-header h1 {
    font-size: var(--font-size-3xl);
  }

  .single-post .entry-title {
    font-size: var(--font-size-3xl);
  }

  .pricing-card .price {
    font-size: var(--font-size-3xl);
  }

  .error-404 .error-code {
    font-size: 6rem;
  }

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

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .btn-group .btn {
    border-radius: 8px !important;
  }

  .feature-card {
    padding: var(--space-6);
  }

  .testimonial-card {
    padding: var(--space-6);
  }

  .pricing-card {
    padding: var(--space-6);
  }
}

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

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .widget-area,
  .comments-area,
  .pagination,
  .btn,
  .theme-toggle,
  .mobile-menu-toggle,
  .search-toggle {
    display: none !important;
  }

  .site-main {
    padding: 0;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

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