/* Quality 1 Carpet-Cleaning - Responsive Styles */

/* ===== TABLET (768px and below) ===== */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  /* Header & Navigation */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-lg);
    gap: var(--spacing-sm);
    transition: left var(--transition-base);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--spacing-sm);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Sections */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Grid Layouts */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  /* Map */
  .map-container {
    height: 300px;
  }
  
  /* Service Cards */
  .service-image {
    height: 200px;
  }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Container */
  :root {
    --container-padding: 0.75rem;
  }
  
  /* Buttons */
  .btn {
    width: 100%;
    padding: 0.875rem 1rem;
  }
  
  .btn-large {
    padding: 1rem 1.25rem;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-md);
  }
  
  /* Sections */
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  /* Hero */
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  /* Service Images */
  .service-image {
    height: 180px;
  }
  
  /* Contact Items */
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* Map */
  .map-container {
    height: 250px;
  }
}

/* ===== LARGE DESKTOP (1200px and above) ===== */
@media (min-width: 1200px) {
  /* Typography */
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  /* Container */
  :root {
    --container-max: 1400px;
  }
  
  /* Grid Layouts - More columns on large screens */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .btn,
  form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  a {
    text-decoration: underline;
    color: #000;
  }
  
  .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-behavior: auto !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --text-dark: #000000;
    --bg-white: #ffffff;
    --border-color: #000000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ===== DARK MODE (Optional - for future implementation) ===== */
@media (prefers-color-scheme: dark) {
  /* Uncomment if dark mode is needed in the future
  :root {
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-white: #1f2937;
    --bg-light: #111827;
    --bg-gray: #374151;
    --border-color: #4b5563;
  }
  */
}
