/* CarbonBridge Pro - Responsive CSS */

/* Mobile First Approach */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        padding-top: 100px;
    }
    
    .hero-section .container {
        padding: 1rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team members */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps */
    .step-number,
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Pricing */
    .price-display {
        font-size: 1.25rem;
    }
    
    .price-tag {
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Disable hover effects for better mobile performance */
    .card:hover,
    .feature-card:hover,
    .team-member:hover img,
    .award-item:hover,
    .info-card:hover {
        transform: none;
        background: initial;
    }
    
    /* Gallery adjustments */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section {
        min-height: 75vh;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .service-card .card-img-top {
        height: 190px;
    }
    
    /* Team */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Pricing */
    .price-display {
        font-size: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }
    
    /* Hero */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Cards grid */
    .service-card,
    .feature-card {
        margin-bottom: 2rem;
    }
    
    /* Team layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps spacing */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 85vh;
    }
    
    /* Navigation spacing */
    .navbar-nav .nav-link {
        margin: 0 0.75rem;
    }
    
    /* Card hover effects enabled */
    .card:hover {
        transform: translateY(-3px);
    }
    
    .feature-card:hover {
        transform: translateY(-2px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full container width */
    .container {
        max-width: 1200px;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 1rem;
    }
    
    /* Cards */
    .service-card .card-img-top {
        height: 220px;
    }
    
    /* Team members */
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    /* Full hover effects */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card .card-img-top,
    .team-member img,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print specific responsive adjustments */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .form-control,
    footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Ensure readable text */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    /* Remove background colors */
    .bg-light,
    .bg-primary {
        background: white !important;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility responsive adjustments */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions on smaller screens */
    @media (max-width: 767.98px) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }
}

/* Dark mode support (if system preference) */

/* Reduced data mode adjustments */
@media (prefers-reduced-data: reduce) {
    /* Optimize for low bandwidth */
    .hero-section::before {
        display: none;
    }
    
    .service-card .card-img-top,
    .team-member img,
    .gallery img {
        /* Images would be optimized/compressed */
    }
}

/* Container queries (future-proof) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 0.75rem;
        }
        
        .card-title {
            font-size: 0.9rem;
        }
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    .nav-link:hover,
    .feature-card:hover {
        transform: none;
        background: initial;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Specific iPhone adjustments */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom */
        border-radius: 8px;
    }
} 

.hero-section h1 {
    padding-top: 225px;
}