/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Mobile Devices (up to 575px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    #hero {
        text-align: center;
        padding-top: 80px;
        min-height: 90vh;
    }
    
    #hero .btn-primary {
        font-size: 1rem;
        padding: 10px 25px;
    }
    
    .hero-shape {
        display: none;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Services */
    .services .card .list-unstyled li {
        font-size: 0.85rem;
    }
    
    /* Features */
    .features .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .features .me-3 {
        margin: 0 0 1rem 0;
    }
    
    /* Team */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Contact */
    .contact-info {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 0.6rem 0.8rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        width: 100%;
    }
    
    /* Sections padding */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* No animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #hero .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* Tablet Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.8rem;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .services .card {
        margin-bottom: 1.5rem;
    }
    
    .features .d-flex {
        align-items: flex-start;
    }
    
    .contact-info {
        margin-top: 1.5rem;
    }
}

/* Small Desktop (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.3rem;
    }
    
    .h2 {
        font-size: 1.9rem;
    }
    
    #hero {
        padding-top: 95px;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Large Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .col-lg-2-4 {
        width: 20%;
    }
    
    .card-img-top {
        height: 190px;
    }
}

/* Extra Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-shape {
        width: 400px;
        height: 400px;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    #footer,
    .hero-shape,
    .btn,
    .contact-info {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===================================
   High Contrast Mode
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #000000;
        --secondary-blue: #000000;
        --text-dark: #000000;
        --text-light: #000000;
        --bg-light: #ffffff;
        --border-light: #000000;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
}

/* ===================================
   Landscape Orientation - Mobile
   =================================== */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ===================================
   Focus Styles for Accessibility
   =================================== */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===================================
   Touch Device Optimizations
   =================================== */
@media (any-pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    .card {
        cursor: pointer;
    }
}

/* ===================================
   Dark Mode Support
   =================================== */