/* Mobile-specific fixes for NFD Repairs */

/* ===== RESPONSIVE GRID SYSTEM ===== */

/* Auto-fit grid - responsive by default */
.grid-cols-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .grid-cols-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .grid-cols-auto-fit {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section padding adjustments */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Typography scaling */
    .text-2xl {
        font-size: 1.5rem !important;
    }
    
    .text-lg {
        font-size: 1rem !important;
    }
    
    .text-md {
        font-size: 0.9rem !important;
    }
    
    /* Feature/Service cards - remove aspect ratio on mobile */
    .feature-card,
    .service-card {
        aspect-ratio: auto !important;
        min-height: auto !important;
        padding: 1.5rem !important;
    }
    
    /* Testimonial grid - single column */
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Location grid - single column */
    .location-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact grid - keep 3 columns but smaller */
    .contact-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .contact-card {
        padding: 0.75rem !important;
    }
    
    .contact-card h4 {
        font-size: 0.75rem !important;
    }
    
    .contact-card span {
        font-size: 0.65rem !important;
    }
    
    /* FAQ items */
    .faq-item {
        padding: 1rem !important;
    }
    
    /* CTA buttons - full width on mobile */
    .cta-button {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
    }
    
    /* Flex wrap for button groups */
    .flex-wrap {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Gap adjustments */
    .gap-4 {
        gap: 1rem !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .text-2xl {
        font-size: 1.35rem !important;
    }
    
    /* Contact grid - even smaller */
    .contact-card {
        padding: 0.5rem !important;
    }
    
    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .contact-card h4 {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }
    
    .contact-card span {
        display: none !important;
    }
}

/* ===== HIDE FLOATING AI STEVE ON MOBILE ===== */
@media (max-width: 768px) {
    .ai-steve-trigger {
        display: none !important;
    }
}

/* ===== HERO RESPONSIVE ===== */
.desktop-hero {
    display: block;
}
.mobile-hero {
    display: none;
}

@media (max-width: 768px) {
    .desktop-hero {
        display: none !important;
    }
    .mobile-hero {
        display: block !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-devices {
        font-size: 0.85rem !important;
    }
}

/* ===== ASK STEVE CTA RESPONSIVE ===== */
@media (max-width: 768px) {
    .ask-steve-section {
        padding: 3rem 0 !important;
    }
    
    .ask-steve-main {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
    
    .ask-steve-main h2 {
        font-size: 1.5rem !important;
    }
    
    .ask-steve-main p {
        font-size: 0.95rem !important;
    }
    
    .steve-bg-robot {
        font-size: 6rem !important;
    }
}

/* ===== READY CTA RESPONSIVE ===== */
@media (max-width: 768px) {
    .ready-cta-section {
        padding: 2.5rem 0 !important;
    }
    
    .ready-cta-section h2 {
        font-size: 1.4rem !important;
    }
    
    .ready-cta-section p {
        font-size: 0.9rem !important;
    }
}

/* ===== TESTIMONIALS RESPONSIVE ===== */
@media (max-width: 768px) {
    .testimonial {
        padding: 1.25rem !important;
    }
    
    .testimonial .quote {
        font-size: 0.9rem !important;
    }
    
    .rating-overview {
        flex-direction: column !important;
    }
    
    .review-cta {
        padding: 1.25rem !important;
    }
}

/* ===== LOCATION SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .location-card {
        padding: 1.25rem !important;
    }
    
    .location-map {
        height: 150px !important;
    }
    
    .location-btn {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.75rem !important;
    }
}

/* ===== ORIGINAL MOBILE FIXES ===== */

/* Make CTA button wider on mobile */
@media (max-width: 768px) {
  /* Make logo bigger and centered in mobile view */
  .logo {
    order: 1 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 10px 0 !important;
    width: 100% !important;
  }
  
  .logo img {
    height: 120px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-self: center !important;
  }
  
  /* Standard hamburger menu icon */
  .menu-toggle {
    background: transparent !important;
    border: none !important;
    font-size: 1.75rem !important;
    color: #333 !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
  }
  
  .menu-toggle i {
    display: block !important;
  }
  
  .menu-toggle .menu-icon {
    display: none !important;
  }

  .cta-button {
    width: 90% !important;
    max-width: 300px !important;
  }
  
  /* Make review buttons match CTA width */
  .write-review-btn {
    width: 90% !important;
    max-width: 300px !important;
    margin-bottom: 10px !important;
  }
  
  /* Center "How to Find Us" and "Opening Hours" text/buttons */
  .find-us-box, .hours-box {
    text-align: center !important;
  }
  
  .find-us-box h3, .hours-box h3 {
    text-align: center !important;
  }
  
  .find-us-box a, .hours-box a {
    margin: 0 auto !important;
    display: block !important;
    width: 90% !important;
    max-width: 300px !important;
  }
  
  /* Make "Get in Touch" a 3x1 grid of rounded buttons */
  .contact-options {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 20px 0 !important;
  }
  
  /* Remove all green accents from outer cards */
  .contact-option {
    flex: 0 0 auto !important;
    width: 90px !important;
    min-width: unset !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Show only h4 text, hide other text */
  .contact-option p, .contact-option a {
    display: none !important;
  }
  
  .contact-option h4 {
    display: block !important;
    font-size: 12px !important;
    text-align: center !important;
    margin-top: 5px !important;
    color: #333 !important;
  }
  
  /* Reset all background colors and styles */
  .contact-option .bg-gray-100 {
    width: 100% !important;
    height: 60px !important;
    margin: 0 auto !important;
    border-radius: 8px !important; /* Add rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background-color: #f3f4f6 !important; /* Light gray background */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e5e7eb !important;
  }
  
  /* Remove specific colors for each tile */
  .contact-option:nth-child(1) .bg-primary-light-10 {
    background-color: transparent !important;
  }
  
  .contact-option:nth-child(2) .bg-primary-light-10 {
    background-color: transparent !important;
  }
  
  .contact-option:nth-child(3) .bg-primary-light-10 {
    background-color: transparent !important;
  }
  
  /* Show icons with dark color */
  .contact-option .bg-primary-light-10 i {
    display: block !important;
    font-size: 24px !important;
    color: var(--text-dark) !important;
  }
  
  /* All icons should have the same color */
  .contact-option:nth-child(3) .bg-primary-light-10 i {
    color: #333 !important;
  }
}
