/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.09rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.85rem;
    }
    
    .hero-section h2 {
        font-size: 1.51rem;
    }
    
    .hero-section p {
        font-size: 0.93rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .py-5 {
        padding-top: 2.14rem !important;
        padding-bottom: 2.06rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.19rem !important;
    }
    
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.62rem; }
    h3 { font-size: 1.51rem; }
    h4 { font-size: 1.27rem; }
    
    .btn {
        width: 100%;
        margin-bottom: 0.61rem;
    }
    
    .contact-form .btn {
        width: auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.07rem;
    }
    
    .hero-section h2 {
        font-size: 1.62rem;
    }
    
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-nav .nav-link {
        margin: 0 0.3rem;
    }
    
    .hero-section {
  padding-top: 50px;
        padding-top: 102.00px;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        --swiper-navigation-size: 24px;
    }
    
    .swiper-slide {
        transition: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.51rem !important;
    }
    
    .hero-section {
  padding-top: 50px;
        padding-top: 124.00px;
    }
    
    .hero-section h1 {
        font-size: 2.63rem;
    }
    
    .hero-section h2 {
        font-size: 2.07rem;
    }
    
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 2.92rem;
    }
    
    .hero-section h2 {
        font-size: 2.28rem;
    }
    
    .py-5 {
        padding-top: 4.12rem !important;
        padding-bottom: 4.06rem !important;
    }
}

/* Disable animations and effects on mobile devices (<768px) for Swiper */
@media (max-width: 767.98px) {
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        transform: none !important;
    }
    
    /* Disable autoplay effects */
    .reviews-swiper .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}

/* Navigation adjustments for mobile */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1.08rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        margin: 0.2rem 0;
        border-radius: 5px;
    }
    
    .navbar-collapse {
        background: rgba(37, 70, 37, 0.95);
        border-radius: 8px;
        margin-top: 1.08rem;
        padding: 1rem;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1.15rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* Team section responsive */
@media (max-width: 767.98px) {
    #team .col-lg-3 {
        margin-bottom: 1.64rem;
    }
}

/* Services section responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 1.64rem;
    }
}

/* Contact form responsive */
@media (max-width: 575.98px) {
    .contact-form .col-md-6 {
        margin-bottom: 0.61rem;
    }
    
    .contact-form .form-control {
        padding: 0.6rem 0.8rem;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    footer .col-md-4 {
        margin-bottom: 2.19rem;
        text-align: center;
    }
    
    footer ul {
        text-align: center;
    }
}

/* Breadcrumb responsive */
@media (max-width: 575.98px) {
    .breadcrumb-item img {
        height: 16px;
    }
}

/* Additional spacing adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-6, .col-lg-4, .col-lg-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Ensure proper spacing for mobile navigation */
@media (max-width: 991.98px) {
    body {
        padding-top: 0;
    }
    
    .hero-section {
  padding-top: 50px;
        padding-top: 91.00px;
    }
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #b5b3b2;
    }
} 