/* Responsive Design - Mobile Optimization */

/* Large devices (laptops/desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.5rem;
        --h4-size: 1.25rem;
        --section-padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section::before {
        top: -30%;
        right: -30%;
        width: 80%;
        height: 160%;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .team-card .card-img-top {
        height: 220px;
    }
    
    .price-card.featured {
        transform: none;
        border-width: 3px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
        --h4-size: 1.125rem;
        --h5-size: 1rem;
        --section-padding: 2.5rem 0;
        --card-padding: 1.25rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .custom-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 160px;
    }
    
    .team-card .card-img-top {
        height: 200px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .feature-item {
        padding: 1.5rem 0.5rem;
    }
    
    .process-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .timeline-item {
        padding: 1.25rem;
    }
    
    .blog-card .card-img-top {
        height: 160px;
    }
    
    /* Remove hover effects on mobile */
    .custom-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    
    .team-card:hover .card-img-top {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .blog-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --h1-size: 1.5rem;
        --h2-size: 1.375rem;
        --h3-size: 1.125rem;
        --h4-size: 1rem;
        --h5-size: 0.95rem;
        --h6-size: 0.9rem;
        --section-padding: 2rem 0;
        --card-padding: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 140px;
    }
    
    .team-card .card-img-top {
        height: 180px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .feature-item {
        padding: 1rem 0.25rem;
    }
    
    .process-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .price-value {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-info {
        padding: 1.25rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .timeline-item {
        padding: 1rem;
    }
    
    .blog-card .card-img-top {
        height: 140px;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-section {
        padding: 2rem 0 1rem;
    }
    
    /* Adjust spacing for mobile */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Navbar responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 1rem;
    }
    
    .form-check-input {
        margin-top: 0.125rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
    }
}

/* Card responsive stacking */
@media (max-width: 575.98px) {
    .row .col-md-6,
    .row .col-md-4,
    .row .col-lg-4,
    .row .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .row .col-md-6:last-child,
    .row .col-md-4:last-child,
    .row .col-lg-4:last-child,
    .row .col-lg-3:last-child {
        margin-bottom: 0;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better spacing for readability */
    p {
        line-height: 1.7;
    }
    
    /* Improve form usability */
    .form-control {
        min-height: 44px;
    }
    
    .form-check-input {
        min-width: 20px;
        min-height: 20px;
    }
}

/* No animations on mobile for performance */
@media (max-width: 767.98px) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    /* Keep only essential transitions */
    .navbar-toggler,
    .btn,
    .form-control:focus {
        transition: all 0.15s ease !important;
    }
} 

.hero-content {
    padding-top: 225px;
}