/* ============================================
   LOCAMAR LOCAÇÕES - RESPONSIVE
   Media Queries para Responsividade
   ============================================ */

/* ============================================
   MOBILE FIRST APPROACH
   Base styles are for mobile (320px+)
   ============================================ */

/* ============================================
   TABLET (768px - 1023px)
   ============================================ */
@media (min-width: 768px) {
  /* Typography */
  .hero-title {
    font-size: var(--text-5xl);
  }

  /* Grid Adjustments */
  .grid-md-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-md-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Hero Section */
  .hero {
    min-height: 600px;
  }

  .hero-buttons {
    flex-wrap: nowrap;
  }

  /* Stats */
  .stat-number {
    font-size: var(--text-6xl);
  }

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

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

  /* Spacing Utilities */
  .py-md-8 {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  .py-md-12 {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  /* Typography */
  .hero-title {
    font-size: var(--text-6xl);
  }

  h1 {
    font-size: var(--text-7xl);
  }

  /* Grid Adjustments */
  .grid-lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  /* Navigation - Show desktop menu */
  .nav-list {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  /* Hero Section */
  .hero {
    min-height: 700px;
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

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

  /* Two Column Layout */
  .two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
  }

  /* Spacing Utilities */
  .py-lg-16 {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-4xl);
  }
}

/* ============================================
   MOBILE ONLY (< 768px)
   ============================================ */
@media (max-width: 767px) {
  /* Navigation - Mobile Menu */
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero Section */
  .hero {
    min-height: 400px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Cards - Full Width on Mobile */
  .card {
    padding: var(--spacing-lg);
  }

  /* Product Grid - Single Column */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Blog Grid - Single Column */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Stats Grid - 2 Columns on Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  /* Contact Grid - Single Column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer - Single Column */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* Floating WhatsApp - Smaller on Mobile */
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-button {
    width: 56px;
    height: 56px;
  }

  .whatsapp-button img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }

  /* Section Spacing - Reduce on Mobile */
  .section {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
  }

  /* Buttons - Full Width on Mobile */
  .btn-mobile-full {
    width: 100%;
    justify-content: center;
  }

  /* Hide on Mobile */
  .hide-mobile {
    display: none !important;
  }

  /* Text Alignment */
  .text-mobile-center {
    text-align: center;
  }
}

/* ============================================
   TABLET ONLY (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Navigation - Tablet Menu */
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .menu-toggle {
    display: flex;
  }

  /* Product Grid - 2 Columns on Tablet */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  /* Hero Section */
  .hero {
    min-height: 750px;
  }

  /* Container */
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

/* ============================================
   EXTRA LARGE DESKTOP (1536px+)
   ============================================ */
@media (min-width: 1536px) {
  :root {
    --container-max-width: 1280px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .footer,
  .floating-whatsapp,
  .btn,
  .menu-toggle {
    display: none !important;
  }

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

  .hero {
    margin-top: 0;
    page-break-after: always;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-pulse {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --color-border-subtle: rgba(26, 26, 26, 0.3);
    --color-border-medium: rgba(26, 26, 26, 0.5);
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Currently using light theme only */
  /* Can be implemented in the future if needed */
}

/* ============================================
   LANDSCAPE ORIENTATION (Mobile/Tablet)
   ============================================ */
@media (max-width: 1023px) and (orientation: landscape) {
  .hero {
    min-height: 400px;
  }

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

  .section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }
}

/* ============================================
   UTILITY CLASSES FOR RESPONSIVE DISPLAY
   ============================================ */

/* Show only on mobile */
@media (min-width: 768px) {
  .show-mobile-only {
    display: none !important;
  }
}

/* Show only on tablet and up */
@media (max-width: 767px) {
  .show-tablet-up {
    display: none !important;
  }
}

/* Show only on desktop */
@media (max-width: 1023px) {
  .show-desktop-only {
    display: none !important;
  }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}
