/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.79rem; }
    h3 { font-size: 1.52rem; }
    h4 { font-size: 1.35rem; }
    h5 { font-size: 1.16rem; }
    h6 { font-size: 1.06rem; }

    .lead {
        font-size: 1.06rem;
    }

    .navbar-brand {
        font-size: 1.35rem;
    }

    /* Hero Section */
    .hero-section {
  padding-top: 50px;
        min-height: 80vh;
        padding: 60px 0 20px;
    }

    .hero-section .display-4 {
        font-size: 1.83rem;
    }

    /* Cards */
    .feature-card,
    .service-card,
    .price-card {
        margin-bottom: 1.70rem;
    }

    /* Team Section */
    .team-member img {
        width: 100px;
        height: 100px;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item::before {
        left: 12px !important;
        right: auto !important;
    }

    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.35rem;
    }

    /* Contact Form */
    .contact-form .form-control {
        padding: 10px 14px;
    }

    /* Grid Adjustments */
    .col-lg-2-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.16rem;
    }

    /* Spacing */
    .py-5 {
        padding-top: 2.60rem !important;
        padding-bottom: 2.63rem !important;
    }

    .mb-5 {
        margin-bottom: 2.12rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 2.31rem; }
    h2 { font-size: 1.97rem; }

    .navbar-brand {
        font-size: 1.50rem;
    }

    /* Hero Section */
    .hero-section {
  padding-top: 50px;
        min-height: 85vh;
    }

    .hero-section .display-4 {
        font-size: 2.05rem;
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item::before {
        left: 22px !important;
        right: auto !important;
    }

    /* Grid Adjustments */
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.16rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.43rem;
    }

    /* Hero Section */
    .hero-section .display-4 {
        font-size: 2.31rem;
    }

    /* Team Members */
    .team-member img {
        width: 110px;
        height: 110px;
    }

    /* Timeline */
    .timeline-item {
        width: calc(50% - 20px);
    }

    /* Grid Adjustments */
    .col-lg-2-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    /* Cards */
    .service-card img {
        height: 180px;
    }

    .blog-card img {
        height: 180px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Team Grid */
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    /* Service Cards */
    .service-card img {
        height: 190px;
    }

    .blog-card img {
        height: 190px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    /* Enhanced spacing for larger screens */
    .py-5 {
        padding-top: 4.07rem !important;
        padding-bottom: 4.05rem !important;
    }

    /* Service and Blog Cards */
    .service-card img,
    .blog-card img {
        height: 200px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover img,
    .review-card:hover,
    .core-info-item:hover,
    .blog-card:hover,
    .career-card:hover,
    .case-study-card:hover {
        transform: none;
        box-shadow: inherit;
    }

    /* Ensure touch targets are large enough */
    .navbar-toggler {
        padding: 0.5rem;
        min-height: 44px;
        min-width: 44px;
    }

    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .form-control {
        min-height: 44px;
    }

    .accordion-button {
        min-height: 50px;
    }
}

/* Landscape Phone Specific */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
  padding-top: 50px;
        min-height: 70vh;
        padding: 40px 0 20px;
    }

    .navbar-brand {
        font-size: 1.28rem;
    }

    /* Compact spacing in landscape */
    .py-5 {
        padding-top: 2.09rem !important;
        padding-bottom: 2.05rem !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Crisp images and borders */
    .service-card img,
    .blog-card img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .swiper-pagination,
    .accordion-button::after {
        display: none !important;
    }

    /* Ensure proper page breaks */
    .hero-section,
    section {
        page-break-inside: avoid;
    }

    /* Print-friendly colors */
    * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Accessibility Improvements */
@media (max-width: 991.98px) {
    /* Larger focus indicators on smaller screens */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        box-shadow: 0 0 0 7px rgba(42, 84, 39, 0.50);
    }

    /* Better spacing for touch */
    .accordion-item {
        margin-bottom: 0.70rem;
    }

    .faq .accordion-button {
        font-size: 1.06rem;
        padding: 1rem;
    }
}

/* Swiper Responsive Settings */
@media (max-width: 767.98px) {
    .reviews-swiper .swiper-slide {
        padding: 0 10px;
    }

    .swiper-pagination {
        bottom: 0;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 575.98px) {
    .contact-form .row {
        margin: 0;
    }

    .contact-form .col-md-6,
    .contact-form .col-12 {
        padding: 0;
        margin-bottom: 1.16rem;
    }

    .contact-form .btn-lg {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Gallery Responsive */
@media (max-width: 767.98px) {
    .gallery .col-md-4 {
        margin-bottom: 1.16rem;
    }

    .gallery img {
        border-radius: 8px;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2.12rem;
    }

    footer .col-md-4:last-child {
        margin-bottom: 1.16rem;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(41, 67, 39, 0.95);
        margin-top: 1.05rem;
        border-radius: 8px;
        padding: 1rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 0.25rem 0;
    }
} 