/* Responsive CSS - Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2.09rem;
    }
    
    h2 {
        font-size: 1.78rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    .navbar-brand {
        font-size: 1.35rem !important;
    }
    
    /* Hero section mobile */
    .hero-section {
  padding-top: 50px;
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 1.78rem;
        text-align: center;
    }
    
    .hero-section .lead {
        text-align: center;
        font-size: 1.08rem;
    }
    
    /* Card adjustments */
    .feature-card,
    .service-card,
    .team-member {
        margin-bottom: 1.72rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1.08rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Disable autoplay and effects for Swiper on mobile */
    .swiper-container {
        padding: 1rem 0;
    }
    
    /* Gallery adjustments */
    .gallery-item img {
        height: 200px;
    }
    
    /* Contact info stack vertically */
    #contact-info-phone,
    #contact-info-email,
    #contact-info-address {
        text-align: center;
        margin-bottom: 1.18rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 3rem 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.32rem;
    }
    
    h2 {
        font-size: 1.91rem;
    }
    
    .hero-section {
  padding-top: 50px;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.09rem;
    }
    
    /* Disable Swiper autoplay and effects */
    .swiper-container .swiper-slide {
        padding: 1.5rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Disable Swiper autoplay and effects below 768px */
    .swiper-container {
        overflow: visible;
    }
    
    .swiper-wrapper {
        flex-wrap: wrap;
        transform: none !important;
    }
    
    .swiper-slide {
        width: calc(50% - 1rem);
        margin: 0.5rem;
        flex-shrink: 0;
    }
    
    /* Gallery grid adjustments */
    .gallery-item img {
        height: 240px;
    }
    
    /* Service cards - 2 per row */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team member adjustments */
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Enable full Swiper functionality */
    .swiper-container {
        overflow: hidden;
    }
    
    .swiper-wrapper {
        flex-wrap: nowrap;
    }
    
    .swiper-slide {
        width: auto;
        margin: 0;
    }
    
    /* Hero section full height */
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
    }
    
    /* Larger cards */
    .feature-card {
        padding: 2.5rem;
    }
    
    .service-card .card-img-top {
        height: 220px;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    /* Team member full size */
    .team-member img {
        width: 180px;
        height: 180px;
    }
    
    /* Better spacing */
    section {
        padding: 5rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Larger typography for bigger screens */
    h1 {
        font-size: 2.86rem;
    }
    
    h2 {
        font-size: 2.32rem;
    }
    
    /* Hero adjustments */
    .hero-section h1 {
        font-size: 3.01rem;
    }
    
    .hero-section .lead {
        font-size: 1.35rem;
    }
    
    /* Larger cards */
    .feature-card {
        padding: 3rem;
    }
    
    .service-card .card-img-top {
        height: 250px;
    }
    
    .gallery-item img {
        height: 320px;
    }
    
    /* Better section spacing */
    section {
        padding: 6rem 0;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Maximum typography sizes */
    h1 {
        font-size: 3.01rem;
    }
    
    .hero-section h1 {
        font-size: 3.51rem;
    }
    
    /* Larger gallery images */
    .gallery-item img {
        height: 350px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .swiper-pagination,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #000000;
        --primary-brown: #000000;
        --primary-blue: #000000;
        --primary-gold: #000000;
        --primary-rust: #000000;
        --white: #ffffff;
        --black: #000000;
        --gray: #5e5e5e;
    }
    
    .btn-primary {
        background: black;
        border: 2px solid black;
        color: white;
    }
    
    .btn-primary:hover {
        background: white;
        color: black;
    }
    
    .form-control {
        border: 2px solid black;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
  padding-top: 50px;
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.15rem !important;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover,
    .gallery-item:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable Swiper autoplay and transitions */
    .swiper-container {
        --swiper-navigation-size: 0px;
    }
    
    .swiper-slide {
        transition: none;
    }
    
    /* Remove all hover animations */
    *:hover {
        transition: none !important;
        transform: none !important;
    }
    
    /* Remove scroll behavior */
    html {
        scroll-behavior: auto;
    }
    
    /* Disable loading animations */
    .fade-in-up {
        animation: none;
    }
} 