/* ============================================
   INDEX.PHP MOBILE RESPONSIVE FIXES
   Comprehensive mobile optimization
   ============================================ */

/* Base Mobile Improvements */
@media (max-width: 768px) {
    /* Improve container padding for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Better touch targets - minimum 44px */
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-fresh {
        padding: 4rem 0 2rem;
        min-height: auto;
    }
    
    .hero-fresh-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-fresh-content {
        text-align: center;
        width: 100%;
        padding: 0;
    }
    
    .hero-fresh-content::before {
        display: none; /* Hide rotating image on mobile for better performance */
    }
    
    .hero-fresh-title {
        font-size: 1.875rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-fresh-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-fresh-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stat-card {
        padding: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.8125rem;
    }
    
    .hero-fresh-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-btn-secondary,
    .hero-btn-call {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-fresh-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 280px;
        width: 100%;
    }
    
    /* Services Quick List Mobile */
    .hero-services-quick-list {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .hero-services-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-service-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        padding: 1rem 0.75rem;
        min-height: 100px;
    }
    
    .hero-service-name {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
    
    /* About Section Mobile */
    .about-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-content-left,
    .about-content-right {
        width: 100%;
    }
    
    .about-image-container {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .about-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-btn-primary,
    .about-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .about-locations {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
    
    .about-locations-title {
        font-size: 1.125rem;
    }
    
    .about-locations-text {
        font-size: 0.875rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .about-stat-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(242, 140, 40, 0.1);
    }
    
    .about-stat-item:last-child {
        border-bottom: none;
    }
    
    .about-stat-number {
        font-size: 2rem;
    }
    
    .about-highlight-box {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .about-highlight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .about-highlight-title {
        font-size: 1.125rem;
    }
    
    .about-highlight-text {
        font-size: 0.9375rem;
    }
    
    .about-header-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .about-intro-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Services Grid Mobile */
    .services-images-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card-modern {
        min-height: auto;
    }
    
    .service-card-modern-inner {
        padding: 1.5rem;
    }
    
    .service-card-modern-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .services-images-footer {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .show-more-services-btn,
    .view-all-services-btn {
        width: 100%;
        padding: 1rem;
    }
    
    /* Videos Section Mobile */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-container {
        padding-bottom: 177.78%; /* Maintain 9:16 aspect ratio */
    }
    
    /* Awards Section Mobile */
    .awards-slider-wrapper {
        padding: 0 0.5rem;
    }
    
    .award-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
    
    /* Testimonials Mobile */
    .testimonials-slider-wrapper {
        flex-direction: column;
        padding: 0;
    }
    
    .testimonials-slider {
        margin: 0;
        padding: 0 1rem;
    }
    
    .testimonial-slider-btn {
        position: relative;
        margin: 1rem auto;
        display: flex;
        transform: none;
    }
    
    .testimonial-slider-prev {
        left: auto;
        right: auto;
        order: 1;
    }
    
    .testimonial-slider-next {
        right: auto;
        left: auto;
        order: 3;
    }
    
    .testimonials-slider {
        order: 2;
        margin: 0;
    }
    
    .testimonials-slider-dots {
        order: 4;
        margin-top: 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    /* FAQ Mobile */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1.25rem 1rem;
    }
    
    .faq-question-text {
        font-size: 1rem;
        padding-right: 2.5rem;
    }
    
    /* Contact Section Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-input,
    .contact-form-textarea {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .contact-form-submit {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    /* CTA Section Mobile */
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Section Headers Mobile */
    .services-images-header,
    .videos-header,
    .awards-header,
    .testimonials-header,
    .faq-header,
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .services-images-title,
    .videos-title,
    .awards-title,
    .testimonials-title,
    .faq-title,
    .contact-title,
    .about-section-title {
        font-size: 1.875rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .services-images-subtitle,
    .videos-subtitle,
    .awards-subtitle,
    .testimonials-subtitle,
    .faq-subtitle,
    .contact-subtitle,
    .about-section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero */
    .hero-fresh {
        padding: 3rem 0 1.5rem;
    }
    
    .hero-fresh-title,
    .about-section-title,
    .services-images-title,
    .videos-title,
    .awards-title,
    .testimonials-title,
    .faq-title,
    .contact-title {
        font-size: 1.5rem !important;
    }
    
    .hero-fresh-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-service-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    /* Cards */
    .service-card-modern-inner,
    .testimonial-card-inner,
    .award-card-inner,
    .contact-info-card,
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .hero-btn-secondary,
    .hero-btn-call,
    .about-btn-primary,
    .about-btn-secondary,
    .service-card-modern-btn,
    .contact-form-submit {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    /* Videos */
    .video-play-pause {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    /* Sections */
    .hero-services-quick-list,
    .services-images-section,
    .videos-section,
    .awards-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    /* Form inputs */
    .contact-form-input,
    .contact-form-textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-fresh {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-fresh-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-fresh-content {
        flex: 1;
        text-align: left;
    }
    
    .hero-fresh-image {
        flex: 0 0 40%;
    }
    
    .hero-fresh-cta {
        flex-direction: row;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile devices */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects that don't work on touch */
    .service-card-modern:hover,
    .contact-info-card:hover {
        transform: none;
    }
    
    /* Better focus states for touch navigation */
    a:focus,
    button:focus {
        outline: 3px solid #F28C28;
        outline-offset: 2px;
    }
    
    /* Larger form inputs for easier tapping */
    .contact-form-input,
    .contact-form-textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
}

/* Improve scrolling performance on mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(242, 140, 40, 0.2);
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Better image loading */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Ensure containers don't overflow */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix any overflowing elements */
    section {
        overflow-x: hidden;
        width: 100%;
    }
}

/* Navigation improvements for mobile */
@media (max-width: 768px) {
    /* Ensure content is accessible below sticky header */
    .hero-fresh {
        padding-top: 5rem;
        scroll-margin-top: 80px;
    }
    
    /* All sections should account for sticky header */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Smooth scroll to sections */
    html {
        scroll-behavior: smooth;
    }
}

/* Footer mobile adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-services-list {
        max-height: 200px;
    }
}

/* Improve readability on mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Base font size for readability */
        line-height: 1.6;
    }
    
    p {
        margin-bottom: 1rem;
    }
    
    /* Better text contrast */
    .text-gray-600,
    .text-gray-700 {
        color: #4B5563 !important;
    }
}

/* Loading states and performance */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .hero-fresh-content::before {
        animation: none;
    }
    
    /* Optimize transitions */
    * {
        transition-duration: 0.2s;
    }
}

