/* ===================================
   MOBILE IMPROVEMENTS & FIXES
   The Tree Company Website
   =================================== */

/* ===================================
   MOBILE HERO IMPROVEMENTS
   =================================== */

/* Home Page Hero - Mobile Optimized */
@media (max-width: 968px) {
    .hero {
        padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        max-height: 400px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        max-width: 400px;
        margin: 0 auto var(--spacing-xl);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        max-width: 400px;
        margin: 0 auto var(--spacing-lg);
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .feature-badge {
        width: 100%;
        justify-content: center;
    }
}


/* ===================================
   FIX IMAGE SKEWING ON MOBILE
   =================================== */

@media (max-width: 968px) {
    /* Hero Images */
    .hero-image img,
    .about-hero .hero-image img {
        height: 400px !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Service Card Images */
    .service-image-top {
        height: 280px !important;
    }
    
    .service-image-top img {
        height: 100% !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Before/After Images */
    .before-after-image img {
        height: 300px !important;
        object-fit: cover;
        object-position: center;
    }
    
    .single-image-container img {
        height: 350px !important;
        object-fit: cover;
        object-position: center;
    }
    
    /* Gallery Images */
    .image-container {
        height: 280px !important;
    }
    
    .image-container img {
        height: 100% !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Work/Our Work Page Images */
    .ba-image img {
        height: 320px !important;
        object-fit: cover;
        object-position: center;
    }
    
    .equipment-image {
        height: 250px !important;
    }
    
    .equipment-image img {
        height: 100% !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    /* Contact Hero Images */
    .contact-hero .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-image img,
    .about-hero .hero-image img {
        height: 320px !important;
    }
    
    .before-after-image img,
    .ba-image img {
        height: 250px !important;
    }
    
    .service-image-top {
        height: 240px !important;
    }
}



/* Modern button hover effects */
.cta-primary,
.cta-secondary {
    position: relative;
    overflow: hidden;
}

/* Feature badges with micro-interactions */
.feature-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-badge:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.25);
}

/* Hide feature badges on mobile */
@media (max-width: 768px) {
  .hero-features,
  .feature-badge {
    display: none !important;
  }
}


