/* Responsive CSS - Mobile First Approach */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section .container {
        padding: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Contact Info */
    .contact-info {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info i {
        font-size: 2rem;
    }
    
    /* Service Items */
    .service-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-item i {
        font-size: 2.5rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        justify-content: center;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.15rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        max-width: 540px;
    }
    
    .card-deck .card {
        margin-bottom: 1rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    /* Hero adjustments */
    .hero-section .row {
        align-items: center;
    }
    
    .hero-section .col-md-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Cards in grid */
    .row .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .row .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Service items */
    .service-item {
        height: 100%;
    }
    
    /* Contact form */
    .contact-form {
        padding: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    /* Navigation */
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Cards */
    .card {
        height: 100%;
    }
    
    .card-img-top {
        height: 250px;
    }
    
    /* Service items */
    .service-item {
        padding: 2.5rem;
    }
    
    /* Contact info */
    .contact-info {
        padding: 2.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Hero section */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 280px;
    }
    
    /* Service items */
    .service-item {
        padding: 3rem;
    }
    
    .service-item i {
        font-size: 3.5rem;
    }
    
    /* Contact info */
    .contact-info {
        padding: 3rem;
    }
    
    .contact-info i {
        font-size: 4rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Height-based media queries */
@media (max-height: 600px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    * {
        color: black !important;
        background: white !important;
    }
    
    .hero-section {
        background: white !important;
    }
    
    .hero-section h1,
    .hero-section .lead,
    .hero-section p {
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .btn {
        border: 1px solid #ddd !important;
        color: black !important;
        background: white !important;
    }
    
    .navbar,
    .breadcrumb,
    footer {
        display: none !important;
    }
    
    section {
        padding: 1rem 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }
    
    .card,
    .service-item {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid #000;
    }
    
    .navbar {
        border-bottom: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card,
    .service-item,
    .btn {
        transition: none;
    }
    
    .fade-in-up {
        animation: none;
    }
}

/* Dark mode support */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Increase tap targets */
    .breadcrumb-item img {
        padding: 0.5rem;
    }
}

/* Custom breakpoints for specific elements */
@media (max-width: 480px) {
    .hero-section .col-md-6 {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Extra small containers */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .service-item {
        padding: 0.75rem;
    }
    
    .contact-info {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Accessibility improvements */
@media (max-width: 768px) {
    /* Larger touch targets */
    .navbar-toggler {
        padding: 1rem;
    }
    
    .form-check-input {
        transform: scale(1.2);
        margin-right: 0.75rem;
    }
    
    .breadcrumb-item {
        padding: 0.5rem;
    }
}

/* Flexbox fallbacks for older browsers */
@supports not (display: flex) {
    .hero-section .container {
        display: block;
    }
    
    .hero-section .row {
        display: block;
    }
    
    .hero-section .col-md-6 {
        display: block;
        width: 100%;
        float: left;
    }
    
    .card {
        display: block;
        margin-bottom: 2rem;
    }
}

/* Grid fallbacks */
@supports not (display: grid) {
    .row {
        display: block;
    }
    
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        display: block;
        width: 100%;
        float: left;
        margin-bottom: 1rem;
    }
    
    @media (min-width: 768px) {
        .col-md-4 {
            width: 33.333%;
        }
        
        .col-md-6 {
            width: 50%;
        }
        
        .col-md-8 {
            width: 66.666%;
        }
    }
} 