/* mobile-fixes.css - Add this to your existing CSS or create new file */
/* Upload to /css/ folder and link in HTML: <link rel="stylesheet" href="css/mobile-fixes.css"> */

/* Global box-sizing fix */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container fixes */
.container, .section {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header/Navigation fixes for mobile */
@media (max-width: 768px) {
    /* Ensure header doesn't overflow */
    header, nav {
        width: 100%;
        overflow: hidden;
    }
    
    /* Stack navigation items vertically */
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav li {
        width: 100%;
        text-align: left;
    }
    
    /* Hero section */
    .hero, .banner {
        padding: 40px 15px;
        text-align: center;
    }
    
    .hero h1, .banner h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    /* Contact page - Form fixes */
    .contact-info-cards {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Form inputs */
    form input,
    form textarea,
    form select {
        width: 100% !important;
        max-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Two-column form layout to single column */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Phone number input container */
    .phone-input-container {
        display: flex;
        width: 100%;
        gap: 10px;
    }
    
    .country-select {
        flex: 0 0 80px;
        min-width: 80px;
    }
    
    .phone-number-input {
        flex: 1;
        min-width: 0;
    }
    
    /* Buttons */
    button, .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Map container */
    .map-container {
        width: 100%;
        height: 300px;
        margin: 20px 0;
    }
    
    .map-container iframe {
        width: 100%;
        height: 100%;
    }
    
    /* Business hours & FAQs side by side to stacked */
    .info-section {
        flex-direction: column;
    }
    
    .business-hours,
    .quick-faqs {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Social icons */
    .social-links {
        justify-content: center;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .contact-info-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .contact-info-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Specific fixes for contact page layout */
.contact-page {
    width: 100%;
    overflow-x: hidden;
}

.page-header {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-title {
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: clamp(14px, 3vw, 18px);
    opacity: 0.9;
}

/* Contact cards grid */
.contact-info-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

/* Form section */
.contact-form-section {
    padding: 60px 20px;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }
}

/* WhatsApp button fix */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E;
}

/* Floating WhatsApp button (bottom right) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Print styles - prevent layout issues */
@media print {
    .whatsapp-float,
    .whatsapp-button,
    nav,
    footer {
        display: none !important;
    }
}