/**
 * Mobile and Responsive Styles
 * Mobile-first responsive design adjustments
 */

/* Base mobile styles */
@media (max-width: 768px) {
  /* Navigation */
  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .container,
  .jcs-container {
    padding: 0 15px;
  }

  /* Content */
  article {
    margin-bottom: 2rem;
  }

  /* WooCommerce products */
  .woocommerce ul.products {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .woocommerce div.product {
    padding: 1rem;
  }

  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .summary {
    width: 100%;
    padding: 0;
  }

  .product-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-details-section {
    margin-top: 2rem;
  }

  /* Related products */
  .single-product .related.products ul.products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .single-product .related.products ul.products li.product {
    min-height: 280px;
  }

  .single-product .related.products ul.products li.product img {
    height: 120px;
  }

  .single-product .related.products h2 {
    font-size: 1.5rem;
  }

  /* Header responsive */
  .theme-mobile-nav {
    display: block;
  }

  .navigation-middle {
    padding: 0.5rem 0;
  }

  .navigation-middle-row {
    flex-direction: column;
    gap: 1rem;
  }

  .col-lg-3,
  .col-lg-7,
  .col-lg-2 {
    width: 100%;
    flex: none;
  }

  .header-search-form {
    margin: 0;
  }

  .nav-area {
    display: none;
  }

  /* Dropdown menus on mobile */
  .menubar .navbar-nav ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--gray-100);
    margin-left: 1rem;
    border-radius: 0;
    margin-top: 0.5rem;
  }

  .menubar .navbar-nav ul ul {
    margin-left: 2rem;
  }

  /* Cart responsive */
  .cart-link {
    padding: 0.25rem 0.5rem;
  }

  .cart-main p {
    display: none;
  }

  .cart-label {
    font-size: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  /* Containers */
  .container,
  .jcs-container {
    padding: 0 10px;
  }

  /* Buttons */
  .nubecom-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .nubecom-btn-lg {
    padding: 0.75rem 1.5rem;
  }

  /* Cards */
  .nubecom-card {
    margin-bottom: 1rem;
  }

  .nubecom-card-content {
    padding: 1rem;
  }

  /* Forms */
  .nubecom-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nubecom-input,
  .nubecom-select,
  .nubecom-textarea {
    padding: 0.5rem;
  }

  /* Hero section */
  .nubecom-hero {
    padding: 3rem 0;
  }

  .nubecom-hero h1 {
    font-size: 1.75rem;
  }

  .nubecom-hero p {
    font-size: 1rem;
  }

  /* Section spacing */
  .nubecom-services,
  .nubecom-why-choose,
  .nubecom-process,
  .nubecom-sectors,
  .nubecom-form-section,
  .nubecom-testimonials {
    padding: 3rem 0;
  }

  /* Grid adjustments */
  .nubecom-grid {
    gap: 1rem;
  }

  /* WhatsApp styles removed - handled by Home Page Features plugin */
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Products grid */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Container adjustments */
  .container,
  .jcs-container {
    padding: 0 20px;
  }

  /* Header search form */
  .header-search-form {
    max-width: 400px;
  }

  /* Nubecom grids */
  .nubecom-grid-3,
  .nubecom-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens */
@media (min-width: 1400px) {
  /* Containers */
  .container,
  .jcs-container {
    max-width: 1400px;
    padding: 0 40px;
  }

  /* Typography scaling */
  .nubecom-hero h1 {
    font-size: 3.5rem;
  }

  .nubecom-section-header h2 {
    font-size: 3rem;
  }

  /* Spacing adjustments */
  .nubecom-services,
  .nubecom-why-choose,
  .nubecom-process,
  .nubecom-sectors,
  .nubecom-form-section,
  .nubecom-testimonials {
    padding: 8rem 0;
  }
}

/* Print styles */
@media print {
  /* Hide non-essential elements */
  .cart-wrapper,
  .header-search-form,
  .nav-area,
  .theme-mobile-nav {
    display: none !important;
  }

  /* Optimize for printing */
  body {
    color: #000;
    background: #fff;
  }

  .nubecom-card,
  .woocommerce div.product {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  /* Ensure good contrast */
  .nubecom-btn {
    border: 1px solid #000;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #000000;
  }

  .nubecom-card,
  .woocommerce div.product {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nubecom-btn:hover,
  .woocommerce ul.products li.product:hover {
    transform: none;
  }
}
