/* ===================================
   JP King Auction Company - Responsive Styles
   Mobile-First Approach
   =================================== */

/* ===================================
   Mobile Base (320px - 767px)
   These styles are default in main.css
   =================================== */

/* Mobile Menu */
@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--accent-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-md);
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
  }

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

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

  .nav-menu a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    border-radius: 0;
  }

  .phone-cta {
    width: 100%;
    margin-top: var(--spacing-sm);
    justify-content: center;
  }

  /* Hero Section */
  .hero {
    min-height: 500px;
    padding: var(--spacing-lg) 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  /* Sections */
  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  /* Stats */
  .stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

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

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

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

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Container */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Form Grid */
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Contact Info Grid */
  .contact-info-grid {
    grid-template-columns: 1fr !important;
  }

  /* Service Details */
  .service-details-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===================================
   Tablet (768px - 1023px)
   =================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    gap: var(--spacing-sm);
  }

  .nav-menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .phone-cta {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  /* Contact Info Grid */
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   Desktop (1024px and above)
   =================================== */

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }

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

  .hero h1 {
    font-size: 3.5rem;
  }

  /* Cards hover effects enhanced */
  .card:hover {
    transform: translateY(-10px);
  }

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

  /* Display 3 cards on larger screens */
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Contact Info Grid */
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Service Details */
  .service-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   Large Desktop (1440px and above)
   =================================== */

@media (min-width: 1440px) {
  .hero h1 {
    font-size: 4rem;
  }

  .section {
    padding: var(--spacing-xxl) 0;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .header,
  .footer,
  .mobile-menu-toggle,
  .btn,
  form {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  a {
    text-decoration: underline;
  }
}

/* ===================================
   Touch Device Optimizations
   =================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn,
  .nav-menu a,
  .phone-cta {
    min-height: 44px;
    min-width: 44px;
  }

  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ===================================
   Reduced Motion
   =================================== */

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

  html {
    scroll-behavior: auto;
  }
}

/* ===================================
   High Contrast Mode
   =================================== */

@media (prefers-contrast: high) {
  :root {
    --primary-navy: #000000;
    --secondary-gold: #ffb300;
    --text-dark: #000000;
  }

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

/* ===================================
   Landscape Mobile
   =================================== */

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 400px;
  }

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

  .section {
    padding: var(--spacing-md) 0;
  }
}

/* ===================================
   Small Mobile (320px - 374px)
   =================================== */

@media (max-width: 374px) {
  .logo {
    font-size: 1.25rem;
  }

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

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}