/*
 * TradeTransco Responsive Styles
 * Mobile-first approach with breakpoints for tablets and desktops
 */

/* ===================================
   TABLET (768px and below)
   =================================== */

@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  /* Container */
  .container {
    padding: 0 var(--space-3);
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8) var(--space-4);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    z-index: var(--z-fixed);
    gap: 0;
  }

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

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-link {
    display: block;
    width: 100%;
    color: var(--primary-dark) !important;
    padding: var(--space-3) 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: calc(var(--z-fixed) + 1);
  }

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

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

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

  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  /* Detail Grid */
  .detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .detail-grid.reverse {
    grid-template-columns: 1fr;
  }

  .detail-grid.reverse .detail-image {
    order: 1;
  }

  .detail-grid.reverse .detail-content {
    order: 2;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Benefits Grid */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Wrapper */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   MOBILE (480px and below)
   =================================== */

@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  /* Container */
  .container {
    padding: 0 var(--space-2);
  }

  /* Sections */
  section {
    padding: var(--space-6) 0;
  }

  /* Hero */
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: none;
  }

  /* Logo */
  .logo img {
    height: 40px;
  }

  .nav-bar[data-state="scrolled"] .logo img {
    height: 35px;
  }

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

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Product Cards */
  .product-image-wrapper {
    height: 280px;
  }

  /* Detail Sections */
  .detail-label {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }

  .detail-content {
    padding: 0;
  }

  .detail-highlight,
  .detail-highlight.dark {
    padding: var(--space-5);
  }

  .feature-list li {
    padding: var(--space-2);
    font-size: var(--text-sm);
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: var(--space-4);
  }

  /* Contact Form */
  .contact-form {
    padding: var(--space-4);
  }

  .form-group {
    margin-bottom: var(--space-4);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer {
    padding: var(--space-6) 0 var(--space-4);
  }

  /* Buttons */
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
  }
}

/* ===================================
   LARGE DESKTOP (1440px and above)
   =================================== */

@media (min-width: 1440px) {
  .container {
    max-width: var(--container-2xl);
  }

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

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

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  /* Products Grid */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: var(--space-8) 0;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .nav-container {
    height: 60px;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .nav-bar,
  .hero-scroll-indicator,
  .contact-form,
  .btn {
    display: none;
  }

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

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