/* Global Responsive Enhancements for All Pages */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .section-title, .cta-title {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .floating-stat, .floating-icon {
        font-size: 0.9rem;
    }
    
    .service-card, .industry-card, .case-study-card {
        padding: 2rem 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding: 3rem 0;
    }
    
    .section-title, .cta-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .service-card, .industry-card, .case-study-card {
        padding: 1.5rem;
    }
    
    .floating-badge, .floating-stat {
        position: relative !important;
        animation: none !important;
        margin-bottom: 1rem;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
    }
    
    .property-grid, .service-grid, .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    /* Global Hero Centering for All Pages */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-subtitle,
    .hero-description {
        text-align: center;
    }
    
    .hero-actions {
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats,
    .trust-grid,
    .hero-badges {
        justify-content: center;
        text-align: center;
    }
    
    .trust-item,
    .stat-item {
        text-align: center;
    }
    
    /* Global CTA Section Centering */
    .cta-section {
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-title,
    .cta-subtitle {
        text-align: center;
    }
    
    .cta-metrics {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .metric {
        text-align: center;
    }
    
    .cta-buttons {
        text-align: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1rem 0;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
        display: flex;
        align-items: center;
        margin: 0 auto;
    }
    
    .achievement-badge {
        position: relative !important;
        animation: none;
        margin: 0.5rem;
    }
    
    /* Mobile Logo Fix */
    .navbar-brand span {
        background: linear-gradient(135deg, #dc3545 0%, #6366f1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: #dc3545; /* Fallback color */
        display: inline-block;
        font-weight: 700;
    }
    
    @supports (-webkit-background-clip: text) {
        .navbar-brand span {
            color: transparent;
        }
    }
    
    .section-title, .cta-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    .service-card,
    .industry-card,
    .case-study-card,
    .testimonial-card {
        padding: 1.5rem 1rem;
        touch-action: manipulation;
    }
    
    .service-card:active,
    .industry-card:active,
    .case-study-card:active {
        transform: scale(0.98);
    }
    
    .property-grid,
    .service-grid,
    .industry-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-showcase {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Prevent zoom on form inputs */
    input, textarea, select, button {
        font-size: 16px;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Text readability */
    .service-card p,
    .industry-card p,
    .case-study-description {
        line-height: 1.6;
        font-size: 0.95rem;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .section-title, .cta-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    /* Mobile Logo Fallback for Small Screens */
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand span {
        background: none !important;
        color: #dc3545 !important;
        -webkit-text-fill-color: #dc3545 !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
    }
    
    .service-card,
    .industry-card,
    .case-study-card {
        padding: 1.25rem 0.75rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .service-icon,
    .industry-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i,
    .industry-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number,
    .trust-number {
        font-size: 1.75rem;
    }
    
    .section-spacing {
        padding: 3rem 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title, .cta-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .industry-card,
    .case-study-card {
        padding: 1rem 0.5rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-badge,
    .section-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

/* Touch Improvements for All Mobile Devices */
@media (max-width: 768px) {
    /* Better touch feedback */
    .btn:active {
        transform: scale(0.95);
    }
    
    /* Focus improvements for accessibility */
    .btn:focus {
        outline: 3px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
    
    .service-card:focus,
    .industry-card:focus {
        outline: 2px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .property-image,
    .team-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .floating-badge,
    .floating-stat {
        animation: none !important;
    }
    
    .service-card:hover,
    .industry-card:hover,
    .case-study-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Landscape Orientation on Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-spacing {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .floating-badge,
    .floating-stat,
    .floating-icon {
        display: none;
    }
    
    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .industry-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        background: transparent !important;
        color: black !important;
        border: 1px solid black !important;
    }
}
