/* Enhanced Mobile Responsiveness for GTALuxBuilders */

/* Base mobile-first approach */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
}

/* Improve touch targets */
button, a, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Container adjustments for mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Enhanced Navigation for Mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav {
        position: relative;
    }
    
    .logo img {
        max-width: 180px;
        height: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .nav-menu a:hover, .nav-menu a:active {
        background: #f0f0f0;
    }
    
    .cta-button {
        margin-top: 1rem;
        width: 100%;
    }
    
    .cta-button .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Dropdown improvements */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: #f8f9fa;
        margin-top: 0.5rem;
        box-shadow: none;
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Hamburger menu improvements */
    .menu-toggle {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Cards and Grid Mobile */
@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .portfolio-item,
    .feature-card {
        margin: 0;
        border-radius: 12px;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-overlay {
        position: static;
        opacity: 1;
        background: rgba(26, 61, 92, 0.9);
        padding: 1.5rem;
        transform: none;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.25rem;
    }
    
    .portfolio-overlay .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Forms Mobile */
@media (max-width: 768px) {
    .contact-form,
    .quote-form {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }
}

/* About Section Mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .stat {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 12px;
    }
}

/* Process/Timeline Mobile */
@media (max-width: 768px) {
    .process-timeline {
        padding: 0;
    }
    
    .process-step {
        margin: 1.5rem 0;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .process-step h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

/* Testimonials Mobile */
@media (max-width: 768px) {
    .testimonials-slider {
        gap: 1rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-author img {
        width: 60px;
        height: 60px;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-section li {
        margin: 0;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f0f0;
        border-radius: 50%;
    }
    
    address {
        text-align: center;
    }
}

/* CTA Section Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .cta-image {
        display: none;
    }
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Stack on mobile */
    .stack-mobile {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Full width on mobile */
    .full-width-mobile {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Center text on mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Smaller padding on mobile */
    .compact-mobile {
        padding: 1rem !important;
    }
    
    /* Improved spacing */
    .mt-mobile-2 { margin-top: 1rem !important; }
    .mb-mobile-2 { margin-bottom: 1rem !important; }
    .my-mobile-2 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
}

/* Small phone adjustments */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-menu {
        height: calc(100vh - 50px);
        overflow-y: auto;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .portfolio-overlay {
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover,
    .feature-card:hover {
        transform: none;
    }
    
    /* Remove hover states on touch devices */
    a:hover,
    button:hover {
        color: inherit;
        background-color: inherit;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
}

/* Loading states for mobile */
@media (max-width: 768px) {
    .loading-spinner {
        font-size: 2rem;
    }
    
    .skeleton-loader {
        border-radius: 8px;
    }
}

/* Modal/Dialog improvements for mobile */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer button {
        width: 100%;
    }
}