/* ========================================
   DYDX Solutions - Responsive Styles
   Mobile-First Responsive Design
   ======================================== */

/* ========================================
   Tablet & Below (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

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

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

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

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

  .shipping-wrapper {
    grid-template-columns: 1fr;
  }

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

  .coverage-map {
    grid-template-columns: 1fr;
  }

  .shipping-details {
    grid-template-columns: 1fr;
  }

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

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

  .procurement-flow {
    grid-template-columns: 1fr;
  }

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

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ========================================
   Mobile & Tablet (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Typography */
  html {
    font-size: 14px;
  }

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

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

  /* Navigation */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.125rem;
    width: 100%;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link.btn-quote {
    margin-top: var(--spacing-md);
    text-align: center;
    width: 100%;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Hero Section - Modern Design Responsive */
  .hero {
    min-height: 90vh;
    padding-top: 100px;
  }

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

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .hero-features {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .hero-stats-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .stats-card {
    padding: var(--spacing-md);
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .stat-content h3 {
    font-size: 1.75rem;
  }

  .floating-shape {
    display: none;
  }

  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

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

  /* Products Section */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Global Shipping */
  .shipping-info,
  .shipping-coverage {
    padding: var(--spacing-xl);
  }

  .shipping-metrics {
    grid-template-columns: 1fr;
  }

  .shipping-details {
    gap: var(--spacing-xl);
  }

  .shipping-process,
  .shipping-compliance {
    padding: var(--spacing-xl);
  }

  .process-steps li {
    padding-left: 3rem;
  }

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

  .procurement-flow {
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  /* Contact Section */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .map-placeholder iframe {
    height: 200px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-col:first-child {
    grid-column: auto;
  }

  /* Modal */
  .modal {
    padding: var(--spacing-sm);
  }

  .modal-content {
    max-height: 95vh;
  }

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

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .quote-form {
    padding: var(--spacing-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .scroll-top {
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========================================
   Small Mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Typography */
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

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

  /* Navigation */
  .nav-brand {
    font-size: 1.125rem;
  }

  .nav-logo {
    height: 35px;
  }

  /* Hero Modern Design - Small Mobile */
  .hero-badge {
    font-size: 0.75rem;
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .btn-modern {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .stat-content h3 {
    font-size: 1.5rem;
  }

  .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }

  /* Hero */
  .stat-card {
    padding: var(--spacing-md);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.875rem;
  }

  /* Service Cards */
  .service-card {
    padding: var(--spacing-lg);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Product Cards */
  .product-info {
    padding: var(--spacing-md);
  }

  /* Feature Cards */
  .feature-card {
    padding: var(--spacing-lg);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Contact */
  .contact-info h3 {
    font-size: 1.5rem;
  }

  .contact-item i {
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }

  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  /* Buttons */
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9375rem;
  }

  .btn-small {
    padding: 0.4rem var(--spacing-sm);
    font-size: 0.8125rem;
  }

  /* Modal */
  .modal {
    padding: 0;
  }

  .modal-content {
    border-radius: 0;
    max-height: 100vh;
  }

  .modal-header {
    padding: var(--spacing-md);
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }

  .quote-form {
    padding: var(--spacing-md);
  }

  .form-section h3 {
    font-size: 1.125rem;
  }

  /* Trust Badges */
  .trust-badges {
    flex-direction: column;
  }

  .badge {
    justify-content: center;
  }

  /* Payment Methods */
  .payment-methods {
    font-size: 1.25rem;
  }
}

/* ========================================
   Large Desktop (min-width: 1400px)
   ======================================== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

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

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

  .services-grid {
    gap: var(--spacing-xl);
  }

  .products-grid {
    gap: var(--spacing-xl);
  }

  .product-image {
    height: 280px;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .navbar,
  .scroll-top,
  .hero-buttons,
  .scroll-indicator,
  footer {
    display: none !important;
  }

  body {
    background: white;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ========================================
   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-indicator {
    animation: none;
  }


/* ========================================
   High Contrast Mode
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --text-gray: #000000;
    --text-light: #333333;
  }

  .btn {
    border: 2px solid currentColor;
  }

  .service-card,
  .product-card,
  .feature-card {
    border: 2px solid var(--primary-blue);
  }
}

/* ========================================
   Dark Mode Support (Optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode support */
  /*
  :root {
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --text-dark: #f1f5f9;
    --text-gray: #cbd5e1;
  }

  .navbar {
    background: rgba(15, 23, 42, 0.95);
  }

  .service-card,
  .product-card,
  .feature-card,
  .contact-form-wrapper {
    background: #1e293b;
    border: 1px solid #334155;
  }
  */
}
